# CVE-2024-41020: filelock: Fix fcntl/close race recovery compat path

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 9% of CVEs (2026-12-01)
- Published: 2024-07-29T13:34:21.617Z
- Modified: 2026-08-05T11:34:46.395Z
- Weaknesses: CWE-362
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from c293621bbf678a3d85e3ed721c3921c8a670610d before a561145f3ae973ebf3e0aee41624e92a6c5cb38d; from c293621bbf678a3d85e3ed721c3921c8a670610d before 4c43ad4ab41602201d34c66ac62130fe339d686f; from c293621bbf678a3d85e3ed721c3921c8a670610d before 911cc83e56a2de5a40758766c6a70d6998248860; from c293621bbf678a3d85e3ed721c3921c8a670610d before 53e21cfa68a7d12de378b7116c75571f73e0dfa2; from c293621bbf678a3d85e3ed721c3921c8a670610d before f4d0775c6e2f1340ca0725f0337de149aaa989ca; from c293621bbf678a3d85e3ed721c3921c8a670610d before 73ae349534ebc377328e7d21891e589626c6e82c; from c293621bbf678a3d85e3ed721c3921c8a670610d before 5b0af8e4c70e4b884bb94ff5f0cd49ecf1273c02; from c293621bbf678a3d85e3ed721c3921c8a670610d before ed898f9ca3fa32c56c858b463ceb9d9936cc69c4; from c293621bbf678a3d85e3ed721c3921c8a670610d before f8138f2ad2f745b9a1c696a05b749eabe44337ea; 2.6.13 (not affected: before 2.6.13; from 4.19.319 up to 4.19.*; from 5.4.281 up to 5.4.*; from 5.10.223 up to 5.10.*; from 5.15.164 up to 5.15.*; from 6.1.102 up to 6.1.*; from 6.6.43 up to 6.6.*; from 6.9.12 up to 6.9.*; from 6.10.2 up to 6.10.*; from 6.11 up to *)
- linux linux_kernel: from 2.6.14 before 4.19.319; from 4.20 before 5.4.281; from 5.5 before 5.10.223; from 5.11 before 5.15.164; from 5.16 before 6.1.102; from 6.2 before 6.6.43; from 6.7 before 6.9.12; from 6.10 before 6.10.2; 2.6.13

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 4.7 Medium `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/a561145f3ae973ebf3e0aee41624e92a6c5cb38d> (patch)
- <https://git.kernel.org/stable/c/4c43ad4ab41602201d34c66ac62130fe339d686f> (patch)
- <https://git.kernel.org/stable/c/911cc83e56a2de5a40758766c6a70d6998248860> (patch)
- <https://git.kernel.org/stable/c/53e21cfa68a7d12de378b7116c75571f73e0dfa2> (patch)
- <https://git.kernel.org/stable/c/f4d0775c6e2f1340ca0725f0337de149aaa989ca> (patch)
- <https://git.kernel.org/stable/c/73ae349534ebc377328e7d21891e589626c6e82c> (patch)
- <https://git.kernel.org/stable/c/5b0af8e4c70e4b884bb94ff5f0cd49ecf1273c02> (patch)
- <https://git.kernel.org/stable/c/ed898f9ca3fa32c56c858b463ceb9d9936cc69c4> (patch)
- <https://git.kernel.org/stable/c/f8138f2ad2f745b9a1c696a05b749eabe44337ea> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>

## Sources

- CVE List: [CVE-2024-41020](https://www.cve.org/CVERecord?id=CVE-2024-41020), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2024-41020](https://nvd.nist.gov/vuln/detail/CVE-2024-41020), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2024-41020 · Whole record: https://cve.day/CVE-2024-41020.json · Rebuilt by cve.day 2026-11-25T22:58:43.285Z
