CVE-2024-53140
netlink: terminate outstanding dump on socket close
Reported by linux · Published December 4, 2024
In the Linux kernel, the following vulnerability has been resolved: netlink: terminate outstanding dump on socket close Netlink supports iterative dumping of data. It provides the families the following ops: - start - (optional) kicks off the dumping process - dump - actual dump helper, keeps getting called until it returns 0 - done - (optional) pairs with .start, can be used for cleanup The whole process is asynchronous and the repeated calls to .dump don't actually happen in a tight loop, but rather are triggered in response to recvmsg() on the socket. This gives the user full control over the dump, but also means that the user can close the socket without getting to the end of the dump. To make sure .start is always paired with .done we check if there is an ongoing dump before freeing the socket, and if so call .done. The complication is that sockets can get freed from BH and .done is allowed to sleep. So we use a workqueue to defer the call, when needed. Unfortunately this does not work correctly. What we defer is not the cleanup but rather releasing a reference on the socket. We have no guarantee that we own the last reference, if someone else holds the socket they may release it in BH and we're back to square one. The whole dance, however, appears to be unnecessary. Only the user can interact with dumps, so we can clean up when socket is closed. And close always happens in process context. Some async code may still access the socket after close, queue notification skbs to it etc. but no dumps can start, end or otherwise make progress. Delete the workqueue and flush the dump state directly from the release handler. Note that further cleanup is possible in -next, for instance we now always call .done before releasing the main module reference, so dump doesn't have to take a reference of its own.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel-modules-extra-common | Amazon Linux | 6.1.119-129.201.amzn2023 |
| kernel-headers | Amazon Linux | 6.1.119-129.201.amzn2023 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | ed5d7788a934a4b6d6d025e948ed4da496b4f12e, ed5d7788a934a4b6d6d025e948ed4da496b4f12e, ed5d7788a934a4b6d6d025e948ed4da496b4f12e |
| Linux | Linux | 4.9, 0, 4.19.325 |
| amazon:2023 | kernel-modules-extra-common | 0 |
| amazon:2023 | kernel-headers | 0 |
| linux | linux_kernel | 4.9, 4.9, 4.8.14 |
| amazon:2023 | perf | 0 |
| amazon:2023 | kernel-libbpf | 0 |
| amazon:2023 | kernel-modules-extra | 0 |
| Linux | Linux | 4.8.14, 4.9, 4.19.325 |
| Siemens | SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | 3.1.0 |
| amazon:2023 | kernel-tools | 0 |
| amazon:2023 | kernel-tools-devel | 0 |
| amazon:2023 | python3-perf | 0 |
| amazon:2023 | kernel-devel | 0 |
| amazon:2023 | kernel-libbpf-devel | 0 |
| amazon:2023 | bpftool | 0 |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | 3.1.0 |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | 3.1.0 |
| amazon:2023 | kernel-libbpf-static | 0 |
| amazon:2023 | kernel | 0 |
…and 1 more
Timeline
- Dec 4, 2024 CVE Published
- Dec 5, 2024 EPSS Score (30 in total, the first dated here)
- Feb 10, 2025 Coalition ESS Score (6 in total, the first dated here)
- Dec 16, 2025 PoC Published
- Dec 31, 2025 Security Advisory (164 in total, the first dated here)
- Apr 29, 2026 Distribution Patch (145 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-53140
vulnetix vdb fixes CVE-2024-53140
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-53140/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart