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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.26% (percentile 11, 2026-11-28)
- **CWE:** CWE-362
- **Published:** 2024-07-29T13:34:21.617Z
- **Modified:** 2026-08-05T11:34:46.395Z

## Who should check

- Anyone running Linux \>= c293621bbf678a3d85e3ed721c3921c8a670610d, \< a561145f3ae973ebf3e0aee41624e92a6c5cb38d; \>= c293621bbf678a3d85e3ed721c3921c8a670610d, \< 4c43ad4ab41602201d34c66ac62130fe339d686f; \>= c293621bbf678a3d85e3ed721c3921c8a670610d, \< 911cc83e56a2de5a40758766c6a70d6998248860; \>= c293621bbf678a3d85e3ed721c3921c8a670610d, \< 53e21cfa68a7d12de378b7116c75571f73e0dfa2; \>= c293621bbf678a3d85e3ed721c3921c8a670610d, \< f4d0775c6e2f1340ca0725f0337de149aaa989ca; \>= c293621bbf678a3d85e3ed721c3921c8a670610d, \< 73ae349534ebc377328e7d21891e589626c6e82c; \>= c293621bbf678a3d85e3ed721c3921c8a670610d, \< 5b0af8e4c70e4b884bb94ff5f0cd49ecf1273c02; \>= c293621bbf678a3d85e3ed721c3921c8a670610d, \< ed898f9ca3fa32c56c858b463ceb9d9936cc69c4; \>= c293621bbf678a3d85e3ed721c3921c8a670610d, \< f8138f2ad2f745b9a1c696a05b749eabe44337ea
- Anyone running Linux 2.6.13

## 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.

## Affected and fixed versions

- Linux: \>= c293621bbf678a3d85e3ed721c3921c8a670610d, \< a561145f3ae973ebf3e0aee41624e92a6c5cb38d; \>= c293621bbf678a3d85e3ed721c3921c8a670610d, \< 4c43ad4ab41602201d34c66ac62130fe339d686f; \>= c293621bbf678a3d85e3ed721c3921c8a670610d, \< 911cc83e56a2de5a40758766c6a70d6998248860; \>= c293621bbf678a3d85e3ed721c3921c8a670610d, \< 53e21cfa68a7d12de378b7116c75571f73e0dfa2; \>= c293621bbf678a3d85e3ed721c3921c8a670610d, \< f4d0775c6e2f1340ca0725f0337de149aaa989ca; \>= c293621bbf678a3d85e3ed721c3921c8a670610d, \< 73ae349534ebc377328e7d21891e589626c6e82c; \>= c293621bbf678a3d85e3ed721c3921c8a670610d, \< 5b0af8e4c70e4b884bb94ff5f0cd49ecf1273c02; \>= c293621bbf678a3d85e3ed721c3921c8a670610d, \< ed898f9ca3fa32c56c858b463ceb9d9936cc69c4; \>= c293621bbf678a3d85e3ed721c3921c8a670610d, \< f8138f2ad2f745b9a1c696a05b749eabe44337ea (cvelist)
- Linux: 2.6.13 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-41020. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-41020.md
Affected: Linux >= c293621bbf678a3d85e3ed721c3921c8a670610d, < a561145f3ae973ebf3e0aee41624e92a6c5cb38d; >= c293621bbf678a3d85e3ed721c3921c8a670610d, < 4c43ad4ab41602201d34c66ac62130fe339d686f; >= c293621bbf678a3d85e3ed721c3921c8a670610d, < 911cc83e56a2de5a40758766c6a70d6998248860; >= c293621bbf678a3d85e3ed7…
Fixed in: Linux 4c43ad4ab41602201d34c66ac62130fe339d686f, Linux 911cc83e56a2de5a40758766c6a70d6998248860, Linux 53e21cfa68a7d12de378b7116c75571f73e0dfa2, Linux 73ae349534ebc377328e7d21891e589626c6e82c, Linux 5b0af8e4c70e4b884bb94ff5f0cd49ecf1273c02

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-41020 being exploited?

There is no confirmed exploitation: CVE-2024-41020 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.26% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2024-41020?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-41020?

Linux \>= c293621bbf678a3d85e3ed721c3921c8a670610d, \< a561145f3ae973ebf3e0aee41624e92a6c5cb38d; \>= c293621bbf678a3d85e3ed721c3921c8a670610d, \< 4c43ad4ab41602201d34c66ac62130fe339d686f; \>= c293621bbf678a3d85e3ed721c3921c8a670610d, \< 911cc83e56a2de5a40758766c6a70d6998248860; \>= c293621bbf678a3d85e3ed721c3921c8a670610d, \< 53e21cfa68a7d12de378b7116c75571f73e0dfa2; \>= c293621bbf678a3d85e3ed721c3921c8a670610d, \< f4d0775c6e2f1340ca0725f0337de149aaa989ca; \>= c293621bbf678a3d85e3ed721c3921c8a670610d, \< 73ae349534ebc377328e7d21891e589626c6e82c; \>= c293621bbf678a3d85e3ed721c3921c8a670610d, \< 5b0af8e4c70e4b884bb94ff5f0cd49ecf1273c02; \>= c293621bbf678a3d85e3ed721c3921c8a670610d, \< ed898f9ca3fa32c56c858b463ceb9d9936cc69c4; \>= c293621bbf678a3d85e3ed721c3921c8a670610d, \< f8138f2ad2f745b9a1c696a05b749eabe44337ea; Linux 2.6.13.

### Is there a fix for CVE-2024-41020?

Yes. Fixed in Linux 4c43ad4ab41602201d34c66ac62130fe339d686f, Linux 911cc83e56a2de5a40758766c6a70d6998248860, Linux 53e21cfa68a7d12de378b7116c75571f73e0dfa2, Linux 73ae349534ebc377328e7d21891e589626c6e82c, Linux 5b0af8e4c70e4b884bb94ff5f0cd49ecf1273c02. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2024-41020?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <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>
- other: <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-41020>

HTML: <https://flawdb.com/CVE-2024-41020> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-41020>
