CVE-2024-50186: net: explicitly clear the sk pointer, when pf->create fails
Vulnerability summary
CVE-2024-50186 is a high (CVSS 7.8) Use After Free vulnerability in linux. EPSS estimates a 0.23% chance of exploitation in the next 30 days, higher than 14% of scored vulnerabilities.
Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 34 · Related 34Timeline
- 08-11-2024PublishedVulnerability first disclosed.
- 05-08-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
4 scores · 4 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- NVDNIST7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
0.23%
Chance of exploitation in the next 30 days
Percentile
14%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.23% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu122 products
- linux< 5.15.0-127.137 | < 6.8.0-56.58
- linux-allwinner-5.19All versions (No fix recorded)
- linux-aws< 5.15.0-1073.79 | < 6.8.0-1025.27
- linux-aws-5.0All versions (No fix recorded)
- linux-aws-5.11All versions (No fix recorded)
Linux2 products
- linux≥ 78e4aa528a7b1204219d808310524344f627d069, < daf462ff3cde6ecf22b98d9ae770232c10d28de2 | ≥ 893eeba94c40d513cd0fe6539330ebdaea208c0e, < b7d22a79ff4e962b8af5ffe623abd1d6c179eb9f | ≥ 454c454ed645fed051216b79622f7cb69c1638f5, < 563e6892e21d6ecabdf62103fc4e7b326d212334 | ≥ 6cd4a78d962bebbaf8beb7d2ead3f34120e3f7b2, < 8e1b72fd74bf9da3b099d09857f4e7f114f38e12 | ≥ 6cd4a78d962bebbaf8beb7d2ead3f34120e3f7b2, < 631083143315d1b192bd7d915b967b37819e88ea | 5dfe2408fd7dc4d2e7ac38a116ff0a37b1cfd3b9 | ≥ 5.15.162, < 5.15.168 | ≥ 6.1.96, < 6.1.113 | ≥ 6.6.36, < 6.6.57 | ≥ 6.9.7, < 6.10 | 6.10
- linux_kernel≥ 5.15.162, < 5.15.168 | ≥ 6.1.96, < 6.1.113 | ≥ 6.6.36, < 6.6.57 | ≥ 6.9.7, < 6.10 | ≥ 6.10, < 6.11.4 | 6.12:rc1 | 6.12:rc2
Debian1 product
- linux< 6.1.115-1 | < 6.11.4-1
3 vendors · 125 products