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

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2024-50186— net: explicitly clear the sk pointer, when pf->create fails

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存在安全漏洞,该漏洞源于在socket创建失败时sk指针未清除。

CVSS 7.8 · High EPSS 0.23% · P13

Possible ATT&CK Techniques 1 AI

T1211 · Exploitation for Stealth

Affected Version Matrix 17

VendorProduct Version RangeStatus
Linux Linux 78e4aa528a7b1204219d808310524344f627d069< daf462ff3cde6ecf22b98d9ae770232c10d28de2 affected
893eeba94c40d513cd0fe6539330ebdaea208c0e< b7d22a79ff4e962b8af5ffe623abd1d6c179eb9f affected
454c454ed645fed051216b79622f7cb69c1638f5< 563e6892e21d6ecabdf62103fc4e7b326d212334 affected
6cd4a78d962bebbaf8beb7d2ead3f34120e3f7b2< 8e1b72fd74bf9da3b099d09857f4e7f114f38e12 affected
6cd4a78d962bebbaf8beb7d2ead3f34120e3f7b2< 631083143315d1b192bd7d915b967b37819e88ea affected
5dfe2408fd7dc4d2e7ac38a116ff0a37b1cfd3b9 affected
5.15.162< 5.15.168 affected
6.1.96< 6.1.113 affected
… +9 more rows
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2024-50186

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
net: explicitly clear the sk pointer, when pf->create fails
Source: CVE Program / CVE List V5
Vulnerability Description
In the Linux kernel, the following vulnerability has been resolved: net: explicitly clear the sk pointer, when pf->create fails We have recently noticed the exact same KASAN splat as in commit 6cd4a78d962b ("net: do not leave a dangling sk pointer, when socket creation fails"). The problem is that commit did not fully address the problem, as some pf->create implementations do not use sk_common_release in their error paths. For example, we can use the same reproducer as in the above commit, but changing ping to arping. arping uses AF_PACKET socket and if packet_create fails, it will just sk_free the allocated sk object. While we could chase all the pf->create implementations and make sure they NULL the freed sk object on error from the socket, we can't guarantee future protocols will not make the same mistake. So it is easier to just explicitly NULL the sk pointer upon return from pf->create in __sock_create. We do know that pf->create always releases the allocated sk object on error, so if the pointer is not NULL, it is definitely dangling.
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存在安全漏洞,该漏洞源于在socket创建失败时sk指针未清除。
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 78e4aa528a7b1204219d808310524344f627d069 ~ daf462ff3cde6ecf22b98d9ae770232c10d28de2 -
Linux Linux 6.10 -

II. Public POCs for CVE-2024-50186

# 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-50186

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

Patches & Fixes for CVE-2024-50186 (5)

Same Patch Batch · Linux · 2024-11-08 · 38 CVEs total

CVE-2024-50206 9.8 CRITICAL net: ethernet: mtk_eth_soc: fix memory corruption during fq dma init
CVE-2024-50185 8.2 HIGH mptcp: handle consistently DSS corruption
CVE-2024-50174 7.8 HIGH drm/panthor: Fix race when converting group handle to group object
CVE-2024-50211 7.8 HIGH udf: refactor inode_bmap() to handle error
CVE-2024-50208 7.8 HIGH RDMA/bnxt_re: Fix a bug while setting up Level-2 PBL pages
CVE-2024-50207 7.8 HIGH ring-buffer: Fix reader locking when changing the sub buffer order
CVE-2024-50203 7.8 HIGH bpf, arm64: Fix address emission with tag-based KASAN enabled
CVE-2024-50200 7.8 HIGH maple_tree: correct tree corruption on spanning store
CVE-2024-50189 7.8 HIGH HID: amd_sfh: Switch to device-managed dmam_alloc_coherent()
CVE-2024-50188 7.8 HIGH net: phy: dp83869: fix memory corruption when enabling fiber
CVE-2024-50187 7.8 HIGH drm/vc4: Stop the active perfmon before being destroyed
CVE-2024-50173 7.8 HIGH drm/panthor: Fix access to uninitialized variable in tick_ctx_cleanup()
CVE-2024-50175 7.8 HIGH media: qcom: camss: Remove use_count guard in stop_streaming
CVE-2024-50182 7.1 HIGH secretmem: disable memfd_secret() if arch cannot set direct map
CVE-2024-50195 7.1 HIGH posix-clock: Fix missing timespec64 check in pc_clock_settime()
CVE-2024-50199 mm/swapfile: skip HugeTLB pages for unuse_vma
CVE-2024-50210 posix-clock: posix-clock: Fix unbalanced locking in pc_clock_settime()
CVE-2024-50176 remoteproc: k3-r5: Fix error handling when power-up failed
CVE-2024-50209 RDMA/bnxt_re: Add a check for memory allocation
CVE-2024-50177 drm/amd/display: fix a UBSAN warning in DML2.1

Showing top 20 of 38 CVEs. View all on vendor page &rarr; →

IV. Related Vulnerabilities

V. Comments for CVE-2024-50186

No comments yet


Leave a comment