Get a Demo

Let's Patch It!

Book a short call with one our specialists, we'll walk you through how Endor Patches work, and ask you a few questions about your environment (like your primary programming languages and repository management). We'll also send you an email right after you fill out the form, feel free to reply with any questions you have in advance!

CVE

CVE-2026-64541

net/smc: fix UAF in smc_cdc_rx_handler() by pinning the socket
Back to all
CVE

CVE-2026-64541

net/smc: fix UAF in smc_cdc_rx_handler() by pinning the socket

In the Linux kernel, the following vulnerability has been resolved:

net/smc: fix UAF in smccdcrx_handler() by pinning the socket

smccdcrx_handler() looks up the connection by token under the link

group's conns_lock, drops the lock, and then dereferences conn and the

smcsock derived from it, ending in sockhold(&smc->sk) inside

smccdcmsg_recv(). No reference is held across the lock release.

The only reference pinning the socket while the connection is

discoverable in the link group is taken in smclgrregister_conn()

(sockhold) and dropped in smclgrunregisterconn() (sock_put), both

under connslock. Once the handler drops connslock, a concurrent

close() -> smcrelease() -> smcconnfree() -> smclgrunregisterconn()

can drop that reference and free the smc_sock, so the handler's later

sock_hold() runs on freed memory:

  WARNING: lib/refcount.c:25 at refcountwarnsaturate

  Workqueue: rxewq dowork

   refcountwarnsaturate (lib/refcount.c:25)

   smccdcmsgrecv (net/smc/smccdc.c:430)

   smccdcrxhandler (net/smc/smccdc.c:502)

   smcwrrxtaskletfn (net/smc/smc_wr.c:445)

   taskletactioncommon (kernel/softirq.c:938)

   handle_softirqs (kernel/softirq.c:622)

  Kernel panic - not syncing: paniconwarn set

Only SMC-R is affected. The SMC-D receive tasklet is stopped by

taskletkill(&conn->rxtsklet) in smcconnfree() before the connection

is unregistered, so it cannot run concurrently with the free.

Take the socket reference while still holding conns_lock, so the

registration reference can no longer be the last one, and drop it once

the handler is done.

Package Versions Affected

Package Version
patch Availability
No items found.

Automatically patch vulnerabilities without upgrading

Fix Without Upgrading
Detect compatible fix
Apply safe remediation
Fix with a single pull request

CVSS Version

Severity
Base Score
CVSS Version
Score Vector
C
H
U
9.8
-
3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
C
H
U
0
-
3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
C
H
U
-

Related Resources

No items found.

References

https://git.kernel.org/stable/c/1951bffbc6493ec34cff3956b29d4bc6606904a6, https://git.kernel.org/stable/c/3bfb96d9bc6a7ed0b99c7db329cc2e22a28d84bb, https://git.kernel.org/stable/c/472e9d7c0d5b03be3ff91ff941f57da822b031bc, https://git.kernel.org/stable/c/647b19e5cc145a2f1f685ae8ff3805a17356888c, https://git.kernel.org/stable/c/8145b432136285e01091815b48ceb2dae261f262, https://git.kernel.org/stable/c/8de4f665d0febfb92803dece377791a563fc7041, https://git.kernel.org/stable/c/9d160b35cc34a2ba8229d07651468a7848325135, https://git.kernel.org/stable/c/ce5aa8084329351086894aa34d77e40301d5bd3d, https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/64xxx/CVE-2026-64541.json, https://nvd.nist.gov/vuln/detail/CVE-2026-64541, https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Severity

9.8

CVSS Score
0
10

Basic Information

Base CVSS
9.8
EPSS Probability
0.00565%
EPSS Percentile
0.45523%
Introduced Version
d7b0e37c1ac152905b18a5b9506179091a35b0b6,4.18.0,5.11.0,5.16.0,6.2.0,6.7.0,6.13.0,6.19.0,0
Fix Available
9d160b35cc34a2ba8229d07651468a7848325135,5.10.261,5.15.212,6.1.178,6.6.145,6.12.97,6.18.40,7.1.5,6.1.180-1,6.12.100-1~deb12u1,6.12.100-1

Fix Critical Vulnerabilities Instantly

Secure your app without upgrading.
Fix Without Upgrading