nilfs2: protect references to superblock parameters exposed in sysfs
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ da7141fb78db915680616e15677539fc8140cf53 · < 8c6e43b3d5f109cf9c61bc188fcc8175404e924f| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
nilfs2: protect references to superblock parameters exposed in sysfs
The superblock buffers of nilfs2 can not only be overwritten at runtime for modifications/repairs, but they are also regularly swapped, replaced during resizing, and even abandoned when degrading to one side due to backing device issues. So, accessing them requires mutual exclusion using the reader/writer semaphore "nilfs->ns_sem".
Some sysfs attribute show methods read this superblock buffer without the necessary mutual exclusion, which can cause problems with pointer dereferencing and memory access, so fix it.
From the CVE record · Linux
Some nilfs2 sysfs attributes read superblock buffers without required synchronization. If a buffer is changed or replaced while it is being read, pointer dereferencing and memory access problems can occur. The input does not specify an attacker model or authentication requirements.
Engineers running Linux kernels with nilfs2 should check whether their kernel includes the fix; affected versions are not specified.