UBUNTU-CVE-2026-31532
Dashboard / Vulnerabilities / UBUNTU-CVE-2026-31532
UBUNTU-CVE-2026-31532
Summary:
Details: In the Linux kernel, the following vulnerability has been resolved: can: raw: fix ro->uniq use-after-free in raw_rcv() raw_release() unregisters raw CAN receive filters via can_rx_unregister(), but receiver deletion is deferred with call_rcu(). This leaves a window where raw_rcv() may still be running in an RCU read-side critical section after raw_release() frees ro->uniq, leading to a use-after-free of the percpu uniq storage. Move free_percpu(ro->uniq) out of raw_release() and into a raw-specific socket destructor. can_rx_unregister() takes an extra reference to the socket and only drops it from the RCU callback, so freeing uniq from sk_destruct ensures the percpu area is not released until the relevant callbacks have drained. [mkl: applied manually]
References: https://ubuntu.com/security/CVE-2026-31532, https://www.cve.org/CVERecord?id=CVE-2026-31532, https://git.kernel.org/linus/a535a9217ca3f2fccedaafb2fddb4c48f27d36dc, https://ubuntu.com/security/notices/USN-8488-1, https://ubuntu.com/security/notices/USN-8488-2, https://ubuntu.com/security/notices/USN-8507-1, https://ubuntu.com/security/notices/USN-8569-1, https://ubuntu.com/security/notices/USN-8567-1, https://ubuntu.com/security/notices/USN-8574-1, https://ubuntu.com/security/notices/USN-8575-1, https://ubuntu.com/security/notices/USN-8576-1, https://ubuntu.com/security/notices/USN-8574-2, https://ubuntu.com/security/notices/USN-8595-1, https://ubuntu.com/security/notices/USN-8596-1, https://ubuntu.com/security/notices/USN-8575-2, https://ubuntu.com/security/notices/USN-8576-2, https://ubuntu.com/security/notices/USN-8597-1, https://ubuntu.com/security/notices/USN-8603-1, https://ubuntu.com/security/notices/USN-8595-2, https://ubuntu.com/security/notices/USN-8606-1, https://ubuntu.com/security/notices/USN-8607-1, https://ubuntu.com/security/notices/USN-8608-1, https://ubuntu.com/security/notices/USN-8609-1, https://ubuntu.com/security/notices/USN-8575-3, https://ubuntu.com/security/notices/USN-8610-1, https://ubuntu.com/security/notices/USN-8574-3, https://ubuntu.com/security/notices/USN-8595-3, https://ubuntu.com/security/notices/USN-8619-1, https://ubuntu.com/security/notices/USN-8620-1, https://ubuntu.com/security/notices/USN-8620-2, https://ubuntu.com/security/notices/USN-8620-3, https://ubuntu.com/security/notices/USN-8620-4, https://ubuntu.com/security/notices/USN-8665-1, https://ubuntu.com/security/notices/USN-8668-1
Affected packages
Package
Name: linux-aws
Purl: pkg:deb/ubuntu/linux-aws?arch=source&distro=esm-infra-legacy%2Ftrusty
Affected ranges
Type: ECOSYSTEM
Events:
