# CVE-2024-41049: filelock: fix potential use-after-free in posix\_lock\_inode

> 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.33% (percentile 18, 2026-11-28)
- **CWE:** CWE-416
- **Published:** 2024-07-29T14:32:05.953Z
- **Modified:** 2026-08-05T11:35:00.349Z

## Who should check

- Anyone running Linux \>= 117fb80cd1e63c419c7a221ce070becb4bfc7b6d, \< 1cbbb3d9475c403ebedc327490c7c2b991398197; \>= a6f4129378ca15f62cbdde09a7d3ccc35adcf49d, \< 7d4c14f4b511fd4c0dc788084ae59b4656ace58b; \>= 766e56faddbec2eaf70c9299e1c9ef74d846d32b, \< 02a8964260756c70b20393ad4006948510ac9967; \>= 34bff6d850019e00001129d6de3aa4874c2cf471, \< 5cb36e35bc10ea334810937990c2b9023dacb1b0; \>= 74f6f5912693ce454384eaeec48705646a21c74f, \< 432b06b69d1d354a171f7499141116536579eb6a; \>= 74f6f5912693ce454384eaeec48705646a21c74f, \< 116599f6a26906cf33f67975c59f0692ecf7e9b2; \>= 74f6f5912693ce454384eaeec48705646a21c74f, \< 1b3ec4f7c03d4b07bad70697d7e2f4088d2cfe92; e75396988bb9b3b90e6e8690604d0f566cea403a; \>= 5.4.257, \< 5.4.280; \>= 5.10.197, \< 5.10.222; …
- Anyone running Linux 6.6

## Description

In the Linux kernel, the following vulnerability has been resolved:

filelock: fix potential use-after-free in posix\_lock\_inode

Light Hsieh reported a KASAN UAF warning in trace\_posix\_lock\_inode().
The request pointer had been changed earlier to point to a lock entry
that was added to the inode's list. However, before the tracepoint could
fire, another task raced in and freed that lock.

Fix this by moving the tracepoint inside the spinlock, which should
ensure that this doesn't happen.

## Affected and fixed versions

- Linux: \>= 117fb80cd1e63c419c7a221ce070becb4bfc7b6d, \< 1cbbb3d9475c403ebedc327490c7c2b991398197; \>= a6f4129378ca15f62cbdde09a7d3ccc35adcf49d, \< 7d4c14f4b511fd4c0dc788084ae59b4656ace58b; \>= 766e56faddbec2eaf70c9299e1c9ef74d846d32b, \< 02a8964260756c70b20393ad4006948510ac9967; \>= 34bff6d850019e00001129d6de3aa4874c2cf471, \< 5cb36e35bc10ea334810937990c2b9023dacb1b0; \>= 74f6f5912693ce454384eaeec48705646a21c74f, \< 432b06b69d1d354a171f7499141116536579eb6a; \>= 74f6f5912693ce454384eaeec48705646a21c74f, \< 116599f6a26906cf33f67975c59f0692ecf7e9b2; \>= 74f6f5912693ce454384eaeec48705646a21c74f, \< 1b3ec4f7c03d4b07bad70697d7e2f4088d2cfe92; e75396988bb9b3b90e6e8690604d0f566cea403a; \>= 5.4.257, \< 5.4.280; \>= 5.10.197, \< 5.10.222; … (cvelist)
- Linux: 6.6 (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-41049. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-41049.md
Affected: Linux >= 117fb80cd1e63c419c7a221ce070becb4bfc7b6d, < 1cbbb3d9475c403ebedc327490c7c2b991398197; >= a6f4129378ca15f62cbdde09a7d3ccc35adcf49d, < 7d4c14f4b511fd4c0dc788084ae59b4656ace58b; >= 766e56faddbec2eaf70c9299e1c9ef74d846d32b, < 02a8964260756c70b20393ad4006948510ac9967; >= 34bff6d850019e00001129d…
Fixed in: Linux 1cbbb3d9475c403ebedc327490c7c2b991398197, Linux 7d4c14f4b511fd4c0dc788084ae59b4656ace58b, Linux 02a8964260756c70b20393ad4006948510ac9967, Linux 5cb36e35bc10ea334810937990c2b9023dacb1b0, Linux 432b06b69d1d354a171f7499141116536579eb6a, Linux 116599f6a26906cf33f67975c59f0692ecf7e9b2, Linux 1b3ec…

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-41049 being exploited?

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

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

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

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

Linux \>= 117fb80cd1e63c419c7a221ce070becb4bfc7b6d, \< 1cbbb3d9475c403ebedc327490c7c2b991398197; \>= a6f4129378ca15f62cbdde09a7d3ccc35adcf49d, \< 7d4c14f4b511fd4c0dc788084ae59b4656ace58b; \>= 766e56faddbec2eaf70c9299e1c9ef74d846d32b, \< 02a8964260756c70b20393ad4006948510ac9967; \>= 34bff6d850019e00001129d6de3aa4874c2cf471, \< 5cb36e35bc10ea334810937990c2b9023dacb1b0; \>= 74f6f5912693ce454384eaeec48705646a21c74f, \< 432b06b69d1d354a171f7499141116536579eb6a; \>= 74f6f5912693ce454384eaeec48705646a21c74f, \< 116599f6a26906cf33f67975c59f0692ecf7e9b2; \>= 74f6f5912693ce454384eaeec48705646a21c74f, \< 1b3ec4f7c03d4b07bad70697d7e2f4088d2cfe92; e75396988bb9b3b90e6e8690604d0f566cea403a; \>= 5.4.257, \< 5.4.280; \>= 5.10.197, \< 5.10.222; …; Linux 6.6.

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

Yes. Fixed in Linux 1cbbb3d9475c403ebedc327490c7c2b991398197, Linux 7d4c14f4b511fd4c0dc788084ae59b4656ace58b, Linux 02a8964260756c70b20393ad4006948510ac9967, Linux 5cb36e35bc10ea334810937990c2b9023dacb1b0, Linux 432b06b69d1d354a171f7499141116536579eb6a, Linux 116599f6a26906cf33f67975c59f0692ecf7e9b2, Linux 1b3ec4f7c03d4b07bad70697d7e2f4088d2cfe92, Linux 5.4.280, Linux 5.10.222. No fix listed yet: follow the vendor advisory.

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

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/1cbbb3d9475c403ebedc327490c7c2b991398197>
- patch: <https://git.kernel.org/stable/c/7d4c14f4b511fd4c0dc788084ae59b4656ace58b>
- patch: <https://git.kernel.org/stable/c/02a8964260756c70b20393ad4006948510ac9967>
- patch: <https://git.kernel.org/stable/c/5cb36e35bc10ea334810937990c2b9023dacb1b0>
- patch: <https://git.kernel.org/stable/c/432b06b69d1d354a171f7499141116536579eb6a>
- patch: <https://git.kernel.org/stable/c/116599f6a26906cf33f67975c59f0692ecf7e9b2>
- patch: <https://git.kernel.org/stable/c/1b3ec4f7c03d4b07bad70697d7e2f4088d2cfe92>
- 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-41049>

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