filelock: fix potential use-after-free in posix_lock_inode
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.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 5.10.222, 5.15.163, 5.4.280, 6.1.100, 6.6.41, 6.9.10
- CVEs
- CVE-2024-41049
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 6 Nov 2026, 03:33 UTC · Revision 1
Source evidence
filelock: fix potential use-after-free in posix_lock_inode
core-osv · Original sourcePublished 29 Jul 2024, 14:32 UTC
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.
osv:CVE-2024-41049
Kernel
Fixed versions: 5.4.280, 5.10.222, 5.15.163, 6.1.100, 6.6.41, 6.9.10
Complete source record
{
"id": "824c6fd367ad7d07861bdca47b093a5d5158dc483581c8c81b01768293c2405d",
"url": "https://osv.dev/vulnerability/CVE-2024-41049",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "filelock: fix potential use-after-free in posix_lock_inode",
"summary": "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.",
"evidence": "osv:CVE-2024-41049",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "5.4.280",
"evidence": "/affected/1/ranges"
},
{
"value": "5.10.222",
"evidence": "/affected/1/ranges"
},
{
"value": "5.15.163",
"evidence": "/affected/1/ranges"
},
{
"value": "6.1.100",
"evidence": "/affected/1/ranges"
},
{
"value": "6.6.41",
"evidence": "/affected/1/ranges"
},
{
"value": "6.9.10",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "CVE-2024-41049",
"aliases": [
"CVE-2024-41049"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "117fb80cd1e63c419c7a221ce070becb4bfc7b6d"
},
{
"fixed": "1cbbb3d9475c403ebedc327490c7c2b991398197"
}
]
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "a6f4129378ca15f62cbdde09a7d3ccc35adcf49d"
},
{
"fixed": "7d4c14f4b511fd4c0dc788084ae59b4656ace58b"
}
]
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "766e56faddbec2eaf70c9299e1c9ef74d846d32b"
},
{
"fixed": "02a8964260756c70b20393ad4006948510ac9967"
}
]
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "34bff6d850019e00001129d6de3aa4874c2cf471"
},
{
"fixed": "5cb36e35bc10ea334810937990c2b9023dacb1b0"
}
]
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "74f6f5912693ce454384eaeec48705646a21c74f"
},
{
"fixed": "432b06b69d1d354a171f7499141116536579eb6a"
},
{
"fixed": "116599f6a26906cf33f67975c59f0692ecf7e9b2"
},
{
"fixed": "1b3ec4f7c03d4b07bad70697d7e2f4088d2cfe92"
}
]
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "5.4.257"
},
{
"fixed": "5.4.280"
}
]
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "5.10.197"
},
{
"fixed": "5.10.222"
}
]
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "5.15.133"
},
{
"fixed": "5.15.163"
}
]
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "6.1.55"
},
{
"fixed": "6.1.100"
}
]
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "6.5.5"
},
{
"fixed": "6.6"
}
]
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "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/cve-osv-conversion/osv-output/CVE-2024-41049.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "5.4.280"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.5.0"
},
{
"fixed": "5.10.222"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.11.0"
},
{
"fixed": "5.15.163"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "6.1.100"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.2.0"
},
{
"fixed": "6.6.41"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.6.0"
},
{
"fixed": "6.9.10"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-41049.json"
}
}
],
"modified": "2026-10-28T02:30:46.483039801Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/02a8964260756c70b20393ad4006948510ac9967",
"https://git.kernel.org/stable/c/116599f6a26906cf33f67975c59f0692ecf7e9b2",
"https://git.kernel.org/stable/c/1b3ec4f7c03d4b07bad70697d7e2f4088d2cfe92",
"https://git.kernel.org/stable/c/1cbbb3d9475c403ebedc327490c7c2b991398197",
"https://git.kernel.org/stable/c/432b06b69d1d354a171f7499141116536579eb6a",
"https://git.kernel.org/stable/c/5cb36e35bc10ea334810937990c2b9023dacb1b0",
"https://git.kernel.org/stable/c/7d4c14f4b511fd4c0dc788084ae59b4656ace58b",
"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/41xxx/CVE-2024-41049.json",
"https://nvd.nist.gov/vuln/detail/CVE-2024-41049",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/41xxx/CVE-2024-41049.json"
}
},
"related_cves": [
{
"value": "CVE-2024-41049",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 514499,
"published_at": "2024-07-29T14:32:05.953+00:00"
}