{"id":81002,"date":"2026-06-24T10:44:29","date_gmt":"2026-06-24T07:14:29","guid":{"rendered":"https:\/\/afaghhosting.net\/blog\/cve-2026-52941-net-smc-avoid-null-deref-of-conn-lnk-in-smc_msg_event-tracepoint\/"},"modified":"2026-06-24T10:44:29","modified_gmt":"2026-06-24T07:14:29","slug":"cve-2026-52941-net-smc-avoid-null-deref-of-conn-lnk-in-smc_msg_event-tracepoint","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/cve-2026-52941-net-smc-avoid-null-deref-of-conn-lnk-in-smc_msg_event-tracepoint\/","title":{"rendered":"CVE-2026-52941 &#8211; net\/smc: avoid NULL deref of conn-&gt;lnk in smc_msg_event tracepoint"},"content":{"rendered":"<p>CVE ID :CVE-2026-52941<\/p>\n<p>  Published : June 24, 2026, 7:14 a.m. | 2\u00a0hours, 29\u00a0minutes ago<\/p>\n<p>  Description :In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>net\/smc: avoid NULL deref of conn-&gt;lnk in smc_msg_event tracepoint<\/p>\n<p>The smc_msg_event tracepoint class, shared by smc_tx_sendmsg and<br \/>\nsmc_rx_recvmsg, unconditionally dereferences smc-&gt;conn.lnk:<\/p>\n<p>\t__string(name, smc-&gt;conn.lnk-&gt;ibname)<\/p>\n<p>conn-&gt;lnk is only set for SMC-R; for SMC-D it is NULL. Other code on<br \/>\nthese paths already handles this (e.g. !conn-&gt;lnk in<br \/>\nSMC_STAT_RMB_TX_SIZE_SMALL()). With the tracepoint enabled, the first<br \/>\nsendmsg()\/recvmsg() on an SMC-D socket crashes:<\/p>\n<p>  Oops: general protection fault, probably for non-canonical address<br \/>\n  KASAN: null-ptr-deref in range [&#8230;]\n  RIP: 0010:strlen+0x1e\/0xa0<br \/>\n  Call Trace:<br \/>\n   trace_event_raw_event_smc_msg_event (net\/smc\/smc_tracepoint.h:44)<br \/>\n   smc_rx_recvmsg (net\/smc\/smc_rx.c:515)<br \/>\n   smc_recvmsg (net\/smc\/af_smc.c:2859)<br \/>\n   __sys_recvfrom (net\/socket.c:2315)<br \/>\n   __x64_sys_recvfrom (net\/socket.c:2326)<br \/>\n   do_syscall_64<\/p>\n<p>The faulting address 0x3e0 is offsetof(struct smc_link, ibname),<br \/>\nconfirming the NULL -&gt;lnk deref. Enabling the tracepoint requires<br \/>\nroot, but the trigger itself is unprivileged: socket(AF_SMC, &#8230;) has<br \/>\nno capability check, and SMC-D negotiation needs no admin step on<br \/>\ns390 or on x86 with the loopback ISM device loaded.<\/p>\n<p>Log an empty device name for SMC-D instead of dereferencing NULL.<\/p>\n<p>  Severity: 0.0 | NA<\/p>\n<p>  Visit the link for more details, such as CVSS details, affected products, timeline, and more&#8230;\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CVE ID :CVE-2026-52941 Published : June 24, 2026, 7:14 a.m. | 2\u00a0hours, 29\u00a0minutes ago Description :In the Linux kernel, the following vulnerability has been resolved: net\/smc: avoid NULL deref of conn-&gt;lnk in smc_msg_event tracepoint The smc_msg_event tracepoint class, shared by smc_tx_sendmsg and smc_rx_recvmsg, unconditionally dereferences smc-&gt;conn.lnk: __string(name, smc-&gt;conn.lnk-&gt;ibname) conn-&gt;lnk is only set for SMC-R; for &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-81002","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/81002","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=81002"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/81002\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=81002"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=81002"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=81002"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}