{"id":41273,"date":"2026-10-19T00:32:57","date_gmt":"2026-10-18T16:32:57","guid":{"rendered":"https:\/\/www.54iter.cn\/?vuln=cve-2026-98801"},"modified":"2026-10-19T00:32:57","modified_gmt":"2026-10-18T16:32:57","slug":"cve-2026-98801","status":"publish","type":"vuln","link":"https:\/\/www.54iter.cn\/?vuln=cve-2026-98801","title":{"rendered":"CVE-2026-98801 &#8211; In the Linux kernel, the following vulnerability has been resolved:\n\nnet: restrict SO_RESE"},"content":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>net: restrict SO_RESERVE_MEM to TCP sockets and cap max value<\/p>\n<p>Commit 2bb2f5fb21b0 (&#8220;net: add new socket option SO_RESERVE_MEM&#8221;) and<br \/>\ncommit d00c8ee31729 (&#8220;net: fix possible NULL deref in sock_reserve_memory&#8221;)<br \/>\nonly checked sk_has_account(sk), which is true for both TCP and UDP<br \/>\nsockets.<\/p>\n<p>However, SO_RESERVE_MEM and sk_unused_reserved_mem() are currently only<br \/>\nsupported by TCP:<br \/>\n&#8211; On UDP sockets, sk-&gt;sk_forward_alloc is protected by<br \/>\n  sk-&gt;sk_receive_queue.lock, whereas sock_reserve_memory() and<br \/>\n  sock_release_reserved_memory() only acquire lock_sock(sk). Concurrent<br \/>\n  UDP packet reception\/release and setsockopt(SO_RESERVE_MEM) corrupt<br \/>\n  sk_forward_alloc and memcg accounting.<br \/>\n&#8211; udp_rmem_release() reclaims excess sk_forward_alloc without<br \/>\n  accounting for sk_unused_reserved_mem(sk).<\/p>\n<p>Restrict sock_reserve_memory() to TCP sockets (sk_is_tcp(sk)) for now.<br \/>\nSupporting SO_RESERVE_MEM for UDP (acquiring sk_receive_queue.lock and<br \/>\nhonoring sk_unused_reserved_mem() in udp_rmem_release()) can be done in<br \/>\na future net-next series if needed.<\/p>\n<p>In addition, reject val &gt; SZ_1G with -EINVAL in<br \/>\nsk_setsockopt(SO_RESERVE_MEM). Without an upper bound, values near<br \/>\nINT_MAX cause sk_mem_pages(delta) and (pages &lt;sk_forward_alloc and<br \/>\nsk-&gt;sk_reserved_mem. Using a page-aligned cap (SZ_1G) ensures that the<br \/>\npage-rounded sk-&gt;sk_reserved_mem reported by getsockopt(SO_RESERVE_MEM)<br \/>\ncan always be passed back to setsockopt(SO_RESERVE_MEM).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>net: restrict SO_RESERVE_MEM to TCP sockets and cap max value<\/p>\n<p>Commit 2bb2f5fb21b0 (&#8220;net: add new socket option SO_RESERVE_MEM&#8221;) an<\/p>\n","protected":false},"template":"","meta":[],"categories":[],"tags":[],"class_list":["post-41273","vuln","type-vuln","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln\/41273","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln"}],"about":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/types\/vuln"}],"wp:attachment":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=41273"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=41273"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=41273"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}