CVE
CVE-2026-31532
CNA 原文 · 原文(英文)
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]
受影响版本
- ≥ 7.0, < 7.0.1修复版本 7.0.1
- ≥ 6.19, < 6.19.14修复版本 6.19.14
- ≥ 6.18, < 6.18.24修复版本 6.18.24
- ≥ 6.7, < 6.12.83修复版本 6.12.83
- ≥ 4.1, ≤ 6.6.136受影响至 6.6.136(含),修复版本见厂商公告
发行版软件包(Debian、Ubuntu、Red Hat 等)会回移补丁而不改上游版本号,请同时查看所用发行版的安全公告。
公告与补丁
- git.kernel.org/stable/c/1a0f2de81f7fbdc538fc72d7d74609b79bc83cc0 · Patch
- git.kernel.org/stable/c/34c1741254ff972e8375faf176678a248826fe3a · Patch
- git.kernel.org/stable/c/572f0bf536ebc14f6e7da3d21a85cf076de8358e · Patch
- git.kernel.org/stable/c/5e9cfffad898bbeaafd0ea608a6d267362f050fc · Patch
- git.kernel.org/stable/c/7201a531b9a5ed892bfda5ded9194ef622de8ffa · Patch
- git.kernel.org/stable/c/a535a9217ca3f2fccedaafb2fddb4c48f27d36dc · Patch
数据来源:NVD(公有领域)、CISA KEV(CC0)、FIRST EPSS、OSV.dev / GitHub Advisory Database(CC-BY 4.0) · 本库只列受影响版本与修复版本,不托管、不链接任何利用代码。