# CVE-2024-41049: filelock: fix potential use-after-free in posix_lock_inode

- 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.28%, higher than 21% of CVEs (2026-12-01)
- Published: 2024-07-29T14:32:05.953Z
- Modified: 2026-08-05T11:35:00.349Z
- Weaknesses: CWE-416
- 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 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 117fb80cd1e63c419c7a221ce070becb4bfc7b6d before 1cbbb3d9475c403ebedc327490c7c2b991398197; from a6f4129378ca15f62cbdde09a7d3ccc35adcf49d before 7d4c14f4b511fd4c0dc788084ae59b4656ace58b; from 766e56faddbec2eaf70c9299e1c9ef74d846d32b before 02a8964260756c70b20393ad4006948510ac9967; from 34bff6d850019e00001129d6de3aa4874c2cf471 before 5cb36e35bc10ea334810937990c2b9023dacb1b0; from 74f6f5912693ce454384eaeec48705646a21c74f before 432b06b69d1d354a171f7499141116536579eb6a; from 74f6f5912693ce454384eaeec48705646a21c74f before 116599f6a26906cf33f67975c59f0692ecf7e9b2; from 74f6f5912693ce454384eaeec48705646a21c74f before 1b3ec4f7c03d4b07bad70697d7e2f4088d2cfe92; e75396988bb9b3b90e6e8690604d0f566cea403a; from 5.4.257 before 5.4.280; from 5.10.197 before 5.10.222; from 5.15.133 before 5.15.163; from 6.1.55 before 6.1.100; and 2 more (not affected: before 6.6; from 5.4.280 up to 5.4.*; from 5.10.222 up to 5.10.*; from 5.15.163 up to 5.15.*; from 6.1.100 up to 6.1.*; from 6.6.41 up to 6.6.*; from 6.9.10 up to 6.9.*; from 6.10 up to *)
- linux linux_kernel: from 5.4.257 before 5.4.280; from 5.10.197 before 5.10.222; from 5.15.133 before 5.15.163; from 6.1.55 before 6.1.100; from 6.6 before 6.6.41; from 6.7 before 6.9.10

## 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 7.0 High `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

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

## Sources

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

---

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