filelock: Fix fcntl/close race recovery compat path
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ c293621bbf678a3d85e3ed721c3921c8a670610d · < 73ae349534ebc377328e7d21891e589626c6e82c| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
filelock: Fix fcntl/close race recovery compat path
When I wrote commit 3cad1bc01041 ("filelock: Remove locks reliably when fcntl/close race is detected"), I missed that there are two copies of the code I was patching: The normal version, and the version for 64-bit offsets on 32-bit kernels. Thanks to Greg KH for stumbling over this while doing the stable backport...
Apply exactly the same fix to the compat path for 32-bit kernels.
From the CVE record · Linux
The Linux kernel’s filelock compatibility path for 64-bit offsets on 32-bit kernels missed a fix for an fcntl/close race. When that race occurs, locks may not be removed reliably. The input does not specify attacker access requirements or user interaction.
Operators of Linux systems using 32-bit kernels with the 64-bit-offset compatibility path should check their kernel; affected versions are not specified.