{"id":"CVE-2024-41049","summary":"filelock: fix potential use-after-free in posix_lock_inode","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nfilelock: fix potential use-after-free in posix_lock_inode\n\nLight Hsieh reported a KASAN UAF warning in trace_posix_lock_inode().\nThe request pointer had been changed earlier to point to a lock entry\nthat was added to the inode's list. However, before the tracepoint could\nfire, another task raced in and freed that lock.\n\nFix this by moving the tracepoint inside the spinlock, which should\nensure that this doesn't happen.","modified":"2026-11-13T04:03:04.096233162Z","published":"2024-07-29T14:32:05.953Z","related":["SUSE-SU-2024:3194-1","SUSE-SU-2024:3195-1","SUSE-SU-2024:3383-1","SUSE-SU-2024:4315-1","SUSE-SU-2024:4364-1","SUSE-SU-2024:4376-1","SUSE-SU-2025:20044-1","SUSE-SU-2025:20047-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/41xxx/CVE-2024-41049.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/02a8964260756c70b20393ad4006948510ac9967"},{"type":"WEB","url":"https://git.kernel.org/stable/c/116599f6a26906cf33f67975c59f0692ecf7e9b2"},{"type":"WEB","url":"https://git.kernel.org/stable/c/1b3ec4f7c03d4b07bad70697d7e2f4088d2cfe92"},{"type":"WEB","url":"https://git.kernel.org/stable/c/1cbbb3d9475c403ebedc327490c7c2b991398197"},{"type":"WEB","url":"https://git.kernel.org/stable/c/432b06b69d1d354a171f7499141116536579eb6a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5cb36e35bc10ea334810937990c2b9023dacb1b0"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7d4c14f4b511fd4c0dc788084ae59b4656ace58b"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/41xxx/CVE-2024-41049.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-41049"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"117fb80cd1e63c419c7a221ce070becb4bfc7b6d"},{"fixed":"1cbbb3d9475c403ebedc327490c7c2b991398197"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"a6f4129378ca15f62cbdde09a7d3ccc35adcf49d"},{"fixed":"7d4c14f4b511fd4c0dc788084ae59b4656ace58b"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"766e56faddbec2eaf70c9299e1c9ef74d846d32b"},{"fixed":"02a8964260756c70b20393ad4006948510ac9967"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"34bff6d850019e00001129d6de3aa4874c2cf471"},{"fixed":"5cb36e35bc10ea334810937990c2b9023dacb1b0"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"74f6f5912693ce454384eaeec48705646a21c74f"},{"fixed":"432b06b69d1d354a171f7499141116536579eb6a"},{"fixed":"116599f6a26906cf33f67975c59f0692ecf7e9b2"},{"fixed":"1b3ec4f7c03d4b07bad70697d7e2f4088d2cfe92"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"e75396988bb9b3b90e6e8690604d0f566cea403a"}]}],"versions":["v5.4.279","v5.4.278","v5.4.277","v5.4.276","v5.4.275","v5.4.274","v5.4.273","v5.4.272","v5.4.271","v5.4.270","v5.4.269","v5.4.268","v5.4.267","v5.4.266","v5.4.265","v5.4.264","v5.4.263","v5.4.262","v5.4.261","v5.4.260","v5.4.259","v5.4.258","v5.4.257","v5.10.221","v5.10.220","v5.10.219","v5.10.218","v5.10.217","v5.10.216","v5.10.215","v5.10.214","v5.10.213","v5.10.212","v5.10.211","v5.10.210","v5.10.209","v5.10.208","v5.10.207","v5.10.206","v5.10.205","v5.10.204","v5.10.203","v5.10.202","v5.10.201","v5.10.200","v5.10.199","v5.10.198","v5.10.197","v5.15.162","v5.15.161","v5.15.160","v5.15.159","v5.15.158","v5.15.157","v5.15.156","v5.15.155","v5.15.154","v5.15.153","v5.15.152","v5.15.151","v5.15.150","v5.15.149","v5.15.148","v5.15.147","v5.15.146","v5.15.145","v5.15.144","v5.15.143","v5.15.142","v5.15.141","v5.15.140","v5.15.139","v5.15.138","v5.15.137","v5.15.136","v5.15.135","v5.15.134","v5.15.133","v6.1.99","v6.1.98","v6.1.97","v6.1.96","v6.1.95","v6.1.94","v6.1.93","v6.1.92","v6.1.91","v6.1.90","v6.1.89","v6.1.88","v6.1.87","v6.1.86","v6.1.85","v6.1.84","v6.1.83","v6.1.82","v6.1.81","v6.1.80","v6.1.79","v6.1.78","v6.1.77","v6.1.76","v6.1.75","v6.1.74","v6.1.73","v6.1.72","v6.1.71","v6.1.70","v6.1.69","v6.1.68","v6.1.67","v6.1.66","v6.1.65","v6.1.64","v6.1.63","v6.1.62","v6.1.61","v6.1.60","v6.1.59","v6.1.58","v6.1.57","v6.1.56","v6.1.55","v6.5.13","v6.5.12","v6.5.11","v6.5.10","v6.5.9","v6.5.8","v6.5.7","v6.5.6","v6.5.5"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-41049.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.4.257"},{"fixed":"5.4.280"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.10.197"},{"fixed":"5.10.222"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.15.133"},{"fixed":"5.15.163"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.1.55"},{"fixed":"6.1.100"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.5.5"},{"fixed":"6.6"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.6.0"},{"fixed":"6.6.41"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.9.10"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-41049.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}