7.8high
filelock: fix potential use-after-free in posix_lock_inode
- Severity
- 7.8high CVSS:3.1 by Linux
- Exploit likelihood
- 0.28% (higher than 21% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- 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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| 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 and 6 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.* | CVE List |
| 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 | NVD |
All scores
| Linux | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.0high CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
En el kernel de Linux, se resolvió la siguiente vulnerabilidad: filelock: corrige el posible use after free en posix_lock_inode Light Hsieh informó una advertencia de KASAN UAF en trace_posix_lock_inode(). El puntero de solicitud se había cambiado anteriormente para apuntar a una entrada de bloqueo que se agregó a la lista del inodo. Sin embargo, antes de que el punto de rastreo pudiera activarse, otra tarea entró rápidamente y liberó ese bloqueo. Solucione este problema moviendo el punto de seguimiento dentro del spinlock, lo que debería garantizar que esto no suceda.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-41049 changed 2026-08-05 | CVE Terms of Use |
| NVD | CVE-2024-41049 changed 2026-08-04 | Public domain |