In the Linux kernel, the following vulnerability has been resolved:
ipc: fix to protect IPCS lookups using RCU
syzbot reported that it discovered a use-after-free vulnerability, [0]
idrforeach() is protected by rwsem, but this is not enough. If it is not protected by RCU read-critical region, when idrforeach() calls radixtreenodefree() through callrcu() to free the radixtreenode structure, the node will be freed immediately, and when reading the next node in radixtreeforeachslot(), the already freed memory may be read.
Therefore, we need to add code to make sure that idrforeach() is protected within the RCU read-critical region when we call it in shmdestroyorphaned().
[
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5f1e1573bf103303944fd7225559de5d8297539c",
"target": {
"function": "shm_destroy_orphaned",
"file": "ipc/shm.c"
},
"id": "CVE-2025-38212-0b3fcc75",
"signature_type": "Function",
"digest": {
"function_hash": "79838437419804414233986880527115914948",
"length": 243.0
},
"deprecated": false,
"signature_version": "v1"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b968ba8bfd9f90914957bbbd815413bf6a98eca7",
"target": {
"file": "ipc/shm.c"
},
"id": "CVE-2025-38212-1aafdd80",
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"184379541821817859892412144527746107759",
"160317197283954549092737999113872484228",
"20919242327251372327872786128563129343",
"71146458410873938922150966702537091214",
"307384528657128354589765976706295873060"
]
},
"deprecated": false,
"signature_version": "v1"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d66adabe91803ef34a8b90613c81267b5ded1472",
"target": {
"file": "ipc/shm.c"
},
"id": "CVE-2025-38212-2f2c6eef",
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"184379541821817859892412144527746107759",
"160317197283954549092737999113872484228",
"20919242327251372327872786128563129343",
"71146458410873938922150966702537091214",
"307384528657128354589765976706295873060"
]
},
"deprecated": false,
"signature_version": "v1"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5180561afff8e0f029073c8c8117c95c6512d1f9",
"target": {
"file": "ipc/shm.c"
},
"id": "CVE-2025-38212-38482259",
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"184379541821817859892412144527746107759",
"160317197283954549092737999113872484228",
"20919242327251372327872786128563129343",
"71146458410873938922150966702537091214",
"307384528657128354589765976706295873060"
]
},
"deprecated": false,
"signature_version": "v1"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@78297d53d3878d43c1d627d20cd09f611fa4b91d",
"target": {
"file": "ipc/shm.c"
},
"id": "CVE-2025-38212-653f1423",
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"184379541821817859892412144527746107759",
"160317197283954549092737999113872484228",
"20919242327251372327872786128563129343",
"71146458410873938922150966702537091214",
"307384528657128354589765976706295873060"
]
},
"deprecated": false,
"signature_version": "v1"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5180561afff8e0f029073c8c8117c95c6512d1f9",
"target": {
"function": "shm_destroy_orphaned",
"file": "ipc/shm.c"
},
"id": "CVE-2025-38212-667f7ec6",
"signature_type": "Function",
"digest": {
"function_hash": "79838437419804414233986880527115914948",
"length": 243.0
},
"deprecated": false,
"signature_version": "v1"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@78297d53d3878d43c1d627d20cd09f611fa4b91d",
"target": {
"function": "shm_destroy_orphaned",
"file": "ipc/shm.c"
},
"id": "CVE-2025-38212-68109dcb",
"signature_type": "Function",
"digest": {
"function_hash": "79838437419804414233986880527115914948",
"length": 243.0
},
"deprecated": false,
"signature_version": "v1"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5f1e1573bf103303944fd7225559de5d8297539c",
"target": {
"file": "ipc/shm.c"
},
"id": "CVE-2025-38212-81d10d0a",
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"184379541821817859892412144527746107759",
"160317197283954549092737999113872484228",
"20919242327251372327872786128563129343",
"71146458410873938922150966702537091214",
"307384528657128354589765976706295873060"
]
},
"deprecated": false,
"signature_version": "v1"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@74bc813d11c30e28fc5261dc877cca662ccfac68",
"target": {
"function": "shm_destroy_orphaned",
"file": "ipc/shm.c"
},
"id": "CVE-2025-38212-a41a2486",
"signature_type": "Function",
"digest": {
"function_hash": "79838437419804414233986880527115914948",
"length": 243.0
},
"deprecated": false,
"signature_version": "v1"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@68c173ea138b66d7dd1fd980c9bc578a18e11884",
"target": {
"function": "shm_destroy_orphaned",
"file": "ipc/shm.c"
},
"id": "CVE-2025-38212-a6962a0d",
"signature_type": "Function",
"digest": {
"function_hash": "79838437419804414233986880527115914948",
"length": 243.0
},
"deprecated": false,
"signature_version": "v1"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d66adabe91803ef34a8b90613c81267b5ded1472",
"target": {
"function": "shm_destroy_orphaned",
"file": "ipc/shm.c"
},
"id": "CVE-2025-38212-a9c5b893",
"signature_type": "Function",
"digest": {
"function_hash": "79838437419804414233986880527115914948",
"length": 243.0
},
"deprecated": false,
"signature_version": "v1"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@74bc813d11c30e28fc5261dc877cca662ccfac68",
"target": {
"file": "ipc/shm.c"
},
"id": "CVE-2025-38212-d5eceb77",
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"184379541821817859892412144527746107759",
"160317197283954549092737999113872484228",
"20919242327251372327872786128563129343",
"71146458410873938922150966702537091214",
"307384528657128354589765976706295873060"
]
},
"deprecated": false,
"signature_version": "v1"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b968ba8bfd9f90914957bbbd815413bf6a98eca7",
"target": {
"function": "shm_destroy_orphaned",
"file": "ipc/shm.c"
},
"id": "CVE-2025-38212-d8bd6f69",
"signature_type": "Function",
"digest": {
"function_hash": "79838437419804414233986880527115914948",
"length": 243.0
},
"deprecated": false,
"signature_version": "v1"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@68c173ea138b66d7dd1fd980c9bc578a18e11884",
"target": {
"file": "ipc/shm.c"
},
"id": "CVE-2025-38212-d951ec03",
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"184379541821817859892412144527746107759",
"160317197283954549092737999113872484228",
"20919242327251372327872786128563129343",
"71146458410873938922150966702537091214",
"307384528657128354589765976706295873060"
]
},
"deprecated": false,
"signature_version": "v1"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b0b6bf90ce2699a574b3683e22c44d0dcdd7a057",
"target": {
"function": "shm_destroy_orphaned",
"file": "ipc/shm.c"
},
"id": "CVE-2025-38212-ee218889",
"signature_type": "Function",
"digest": {
"function_hash": "79838437419804414233986880527115914948",
"length": 243.0
},
"deprecated": false,
"signature_version": "v1"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b0b6bf90ce2699a574b3683e22c44d0dcdd7a057",
"target": {
"file": "ipc/shm.c"
},
"id": "CVE-2025-38212-fdd2cb92",
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"184379541821817859892412144527746107759",
"160317197283954549092737999113872484228",
"20919242327251372327872786128563129343",
"71146458410873938922150966702537091214",
"307384528657128354589765976706295873060"
]
},
"deprecated": false,
"signature_version": "v1"
}
]