UBUNTU-CVE-2026-90065: Medium severity ubuntu/linux-hwe-edge vulnerability
In the Linux kernel, the following vulnerability has been resolved: net/smc: release the internal TCP sock on IPPROTOSMC socket creation failure IPPROTOSMC sockets create an internal TCP sock ("clcsock") from the proto->init hook. When socket creation fails after proto->init has run - e.g. a cgroup BPF program attached to BPFCGROUPINETSOCKCREATE denies the socket - skcommonrelease() only invokes skprot->destroy if it is set, but neither smcinetprot nor smcinet6prot defines it, and smcdestruct() returns early unless skstate is SMCCLOSED. As a result, every failing socket(AFINET, SOCKSTREAM, IPPROTOSMC) call leaks one tcpsock, so an unprivileged task able to attach a deny-all BPFCGROUPINETSOCKCREATE program to its own cgroup can grow kernel memory unboundedly. Add a .destroy hook to both protos that releases the clcsock via smcclcsockrelease(). smcskinit() hashes the sock into the smc hashinfo before the clcsock is created, and smcdiag dumps walk that hash dereferencing smc->clcsock without taking clcsockreleaselock, while skcommonrelease() calls .destroy before .unhash. Unhash the sock before releasing the clcsock, as smcrelease() does, so a concurrent dump cannot observe the release; the second unhash in skcommonrelease() is a no-op.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
ubuntu/linux-hwe-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-42.42~24.04.1 - Upgrade
Upgrade
ubuntu/linux-riscv-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-42.42.1~24.04.1 - Upgrade
Upgrade
ubuntu/linuxto a version that resolves this vulnerability.Fixed in 7.0.0-42.42 - Upgrade
Upgrade
ubuntu/linux-awsto a version that resolves this vulnerability.Fixed in 7.0.0-1016.17 - Upgrade
Upgrade
ubuntu/linux-gcpto a version that resolves this vulnerability.Fixed in 7.0.0-1016.18 - Upgrade
Upgrade
ubuntu/linux-ibmto a version that resolves this vulnerability.Fixed in 7.0.0-1017.17 - Upgrade
Upgrade
ubuntu/linux-oem-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-1017.17 - Upgrade
Upgrade
ubuntu/linux-oracleto a version that resolves this vulnerability.Fixed in 7.0.0-1015.16 - Upgrade
Upgrade
ubuntu/linux-riscvto a version that resolves this vulnerability.Fixed in 7.0.0-42.42.1 - Configuration
Add a .destroy hook to both smc_inet_prot and smc_inet6_prot that unhashes the sock before releasing the internal TCP sock (clcsock) via smc_clcsock_release().
Linux kernel net/smc smc_inet_prot.destroy and smc_inet6_prot.destroy = smc_clcsock_release()