Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2024-53140— netlink: terminate outstanding dump on socket close

Quick assessment

Affected
Linux Linux
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于netlink套接字在关闭时未能正确终止正在进行的数据转储操作,可能导致资源未正确释放。

CVSS 7.8 · High EPSS 0.24% · P15

Affected Version Matrix 22

VendorProduct Version RangeStatus
Linux Linux ed5d7788a934a4b6d6d025e948ed4da496b4f12e< 114a61d8d94ae3a43b82446cf737fd757021b834 affected
ed5d7788a934a4b6d6d025e948ed4da496b4f12e< 598c956b62699c3753929602560d8df322e60559 affected
ed5d7788a934a4b6d6d025e948ed4da496b4f12e< 6e3f2c512d2b7dbd247485b1dd9e43e4210a18f4 affected
ed5d7788a934a4b6d6d025e948ed4da496b4f12e< d2fab3d66cc16cfb9e3ea1772abe6b79b71fa603 affected
ed5d7788a934a4b6d6d025e948ed4da496b4f12e< 4e87a52133284afbd40fb522dbf96e258af52a98 affected
ed5d7788a934a4b6d6d025e948ed4da496b4f12e< bbc769d2fa1b8b368c5fbe013b5b096afa3c05ca affected
ed5d7788a934a4b6d6d025e948ed4da496b4f12e< 176c41b3ca9281a9736b67c6121b03dbf0c8c08f affected
ed5d7788a934a4b6d6d025e948ed4da496b4f12e< 1904fb9ebf911441f90a68e96b22aa73e4410505 affected
… +14 more rows
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2024-53140

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
netlink: terminate outstanding dump on socket close
Source: CVE Program / CVE List V5
Vulnerability Description
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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
N/A
Source: CVE Program / CVE List V5
Vulnerability Title
Linux kernel 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于netlink套接字在关闭时未能正确终止正在进行的数据转储操作,可能导致资源未正确释放。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
Linux Linux ed5d7788a934a4b6d6d025e948ed4da496b4f12e ~ 114a61d8d94ae3a43b82446cf737fd757021b834 -
Linux Linux 4.9 -

II. Public POCs for CVE-2024-53140

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2024-53140

请登录查看更多情报信息。

Patches & Fixes for CVE-2024-53140 (8)

Same Patch Batch · Linux · 2024-12-04 · 16 CVEs total

CVE-2024-53138 9.8 CRITICAL net/mlx5e: kTLS, Fix incorrect page refcounting
CVE-2024-53135 8.8 HIGH KVM: VMX: Bury Intel PT virtualization (guest/host mode) behind CONFIG_BROKEN
CVE-2024-53125 7.8 HIGH bpf: sync_linked_regs() must preserve subreg_def
CVE-2024-53127 7.8 HIGH Revert "mmc: dw_mmc: Fix IDMAC operation with pages bigger than 4K"
CVE-2024-53133 7.8 HIGH drm/amd/display: Handle dml allocation failure to avoid crash
CVE-2024-53139 7.8 HIGH sctp: fix possible UAF in sctp_v6_available()
CVE-2024-53136 7.5 HIGH mm: revert "mm: shmem: fix data-race in shmem_getattr()"
CVE-2024-53126 7.1 HIGH vdpa: solidrun: Fix UB bug with devres
CVE-2024-53128 sched/task_stack: fix object_is_on_stack() for KASAN tagged pointers
CVE-2024-53129 drm/rockchip: vop: Fix a dereferenced before check warning
CVE-2024-53130 nilfs2: fix null-ptr-deref in block_dirty_buffer tracepoint
CVE-2024-53131 nilfs2: fix null-ptr-deref in block_touch_buffer tracepoint
CVE-2024-53132 drm/xe/oa: Fix "Missing outer runtime PM protection" warning
CVE-2024-53134 pmdomain: imx93-blk-ctrl: correct remove path
CVE-2024-53137 ARM: fix cacheflush with PAN

IV. Related Vulnerabilities

V. Comments for CVE-2024-53140

No comments yet


Leave a comment