NVD Vulnerability Detail
Search Exploit, PoC
CVE-2024-50186
Summary

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.

Publication Date Nov. 8, 2024, 3:15 p.m.
Registration Date Nov. 9, 2024, 5 a.m.
Last Update Nov. 8, 2024, 3:15 p.m.
Related information, measures and tools
Common Vulnerabilities List

JVN Vulnerability Information
Linux の Linux Kernel における解放済みメモリの使用に関する脆弱性
Title Linux の Linux Kernel における解放済みメモリの使用に関する脆弱性
Summary

Linux の Linux Kernel には、解放済みメモリの使用に関する脆弱性が存在します。

Possible impacts 情報を取得される、情報を改ざんされる、およびサービス運用妨害 (DoS) 状態にされる可能性があります。 
Solution

ベンダより正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。

Publication Date Oct. 7, 2024, midnight
Registration Date Dec. 11, 2024, 3:42 p.m.
Last Update Dec. 11, 2024, 3:42 p.m.
Affected System
Linux
Linux Kernel 5.15.162 以上 5.15.168 未満
Linux Kernel 6.1.96 以上 6.1.113 未満
Linux Kernel 6.10 以上 6.11.4 未満
Linux Kernel 6.12
Linux Kernel 6.6.36 以上 6.6.57 未満
Linux Kernel 6.9.7 以上 6.10 未満
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
Change Log
No Changed Details Date of change
1 [2024年12月11日]   掲載 Dec. 11, 2024, 1:47 p.m.