Vulnerability · Published Apr 24, 2024 · Assigned by Linux

CVE-2024-26923af_unix: Fix garbage collector racing against connect()

High 7.8

In plain English

A high-severity security flaw in Linux from Linux. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 11% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.8High
Exploit odds (30 days)0.2%top 89.1% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

In the Linux kernel, the following vulnerability has been resolved: af_unix: Fix garbage collector racing against connect() Garbage collector does not take into account the risk of embryo getting enqueued during the garbage collection. If such embryo has a peer that carries SCM_RIGHTS, two consecutive passes of scan_children() may see a different set of children. Leading to an incorrectly elevated inflight count, and then a dangling pointer within the gc_inflight_list. sockets are AF_UNIX/SOCK_STREAM S is an unconnected socket L is a listening in-flight socket bound to addr, not in fdtable V's fd will be passed via sendmsg(), gets inflight count bumped connect(S, addr) sendmsg(S, [V]); close(V) __unix_gc() ---------------- ------------------------- ----------- NS = unix_create1() skb1 = sock_wmalloc(NS) L = unix_find_other(addr) unix_state_lock(L) unix_peer(S) = NS // V count=1 inflight=0 NS = unix_peer(S) skb2 = sock_alloc() skb_queue_tail(NS, skb2[V]) // V became in-flight // V count=2 inflight=1 close(V) // V count=1 inflight=1 // GC candidate condition met for u in gc_inflight_list: if (total_refs == inflight_refs) add u to gc_candidates // gc_candidates={L, V} for u in gc_candidates: scan_children(u, dec_inflight) // embryo (skb1) was not // reachable from L yet, so V's // inflight remains unchanged __skb_queue_tail(L, skb1) unix_state_unlock(L) for u in gc_candidates: if (u.inflight) scan_children(u, inc_inflight_move_tail) // V count=1 inflight=2 (!) If there is a GC-candidate listening socket, lock/unlock its state. This makes GC wait until the end of any ongoing connect() to that socket. After flipping the lock, a possibly SCM-laden embryo is already enqueued. And if there is another embryo coming, it can not possibly carry SCM_RIGHTS. At this point, unix_inflight() can not happen because unix_gc_lock is already taken. Inflight graph remains unaffected.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:9bpftool7.3.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-64k5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-64k-core5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-64k-debug5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-64k-debug-core5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-64k-debug-devel5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-64k-debug-devel-matched5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-64k-debug-modules5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-64k-debug-modules-core5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-64k-debug-modules-extra5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-64k-devel5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-64k-devel-matched5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-64k-modules5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-64k-modules-core5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-64k-modules-extra5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-abi-stablelists5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-core5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-cross-headers5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-debug5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-debug-core5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-debug-devel5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-debug-devel-matched5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-debug-modules5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-debug-modules-core5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-debug-modules-extra5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-debug-uki-virt5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-devel5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-devel-matched5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-doc5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-headers5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-modules5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-modules-core5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-modules-extra5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:8kernel-rt4.18.0-553.22.1.rt7.363.el8_10ALSA-2024:7001
AlmaLinux:9kernel-rt5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:8kernel-rt-core4.18.0-553.22.1.rt7.363.el8_10ALSA-2024:7001
AlmaLinux:9kernel-rt-core5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:8kernel-rt-debug4.18.0-553.22.1.rt7.363.el8_10ALSA-2024:7001
AlmaLinux:9kernel-rt-debug5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:8kernel-rt-debug-core4.18.0-553.22.1.rt7.363.el8_10ALSA-2024:7001
AlmaLinux:9kernel-rt-debug-core5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:8kernel-rt-debug-devel4.18.0-553.22.1.rt7.363.el8_10ALSA-2024:7001
AlmaLinux:9kernel-rt-debug-devel5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:8kernel-rt-debug-kvm4.18.0-553.22.1.rt7.363.el8_10ALSA-2024:7001
AlmaLinux:8kernel-rt-debug-modules4.18.0-553.22.1.rt7.363.el8_10ALSA-2024:7001
AlmaLinux:9kernel-rt-debug-modules5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-rt-debug-modules-core5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:8kernel-rt-debug-modules-extra4.18.0-553.22.1.rt7.363.el8_10ALSA-2024:7001
AlmaLinux:9kernel-rt-debug-modules-extra5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:8kernel-rt-devel4.18.0-553.22.1.rt7.363.el8_10ALSA-2024:7001
AlmaLinux:9kernel-rt-devel5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:8kernel-rt-kvm4.18.0-553.22.1.rt7.363.el8_10ALSA-2024:7001
AlmaLinux:8kernel-rt-modules4.18.0-553.22.1.rt7.363.el8_10ALSA-2024:7001
AlmaLinux:9kernel-rt-modules5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-rt-modules-core5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:8kernel-rt-modules-extra4.18.0-553.22.1.rt7.363.el8_10ALSA-2024:7001
AlmaLinux:9kernel-rt-modules-extra5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-tools5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-tools-libs5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-tools-libs-devel5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-uki-virt5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-zfcpdump5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-zfcpdump-core5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-zfcpdump-devel5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-zfcpdump-devel-matched5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-zfcpdump-modules5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-zfcpdump-modules-core5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9kernel-zfcpdump-modules-extra5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9libperf5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9perf5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9python3-perf5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9rtla5.14.0-427.42.1.el9_4ALSA-2024:8617
AlmaLinux:9rv5.14.0-427.42.1.el9_4ALSA-2024:8617
Debian:12linux6.1.90-1DEBIAN-CVE-2024-26923
Debian:12linux6.1.90-1DSA-5680-1
Debian:13linux6.8.9-1DEBIAN-CVE-2024-26923
Debian:14linux6.8.9-1DEBIAN-CVE-2024-26923
Rocky Linux:9kernel0:5.14.0-427.42.1.el9_4RLSA-2024:8617
Rocky Linux:8kernel-rt0:4.18.0-553.22.1.rt7.363.el8_10RLSA-2024:7001
Ubuntu:22.04:LTSlinux5.15.0-116.126UBUNTU-CVE-2024-26923
Ubuntu:22.04:LTSlinux5.15.0-116.126USN-6898-1
Ubuntu:24.04:LTSlinux6.8.0-38.38USN-6893-1
Ubuntu:24.04:LTSlinux6.8.0-38.38UBUNTU-CVE-2024-26923
Ubuntu:22.04:LTSlinux-allwinner-5.19no fix listedUBUNTU-CVE-2024-26923
Ubuntu:22.04:LTSlinux-aws5.15.0-1065.71USN-6898-3
Ubuntu:22.04:LTSlinux-aws5.15.0-1065.71UBUNTU-CVE-2024-26923
Ubuntu:24.04:LTSlinux-aws6.8.0-1011.12UBUNTU-CVE-2024-26923
Ubuntu:24.04:LTSlinux-aws6.8.0-1011.12USN-6893-3
Ubuntu:22.04:LTSlinux-aws-5.19no fix listedUBUNTU-CVE-2024-26923
Ubuntu:22.04:LTSlinux-aws-6.2no fix listedUBUNTU-CVE-2024-26923
Ubuntu:22.04:LTSlinux-aws-6.56.5.0-1023.23~22.04.1UBUNTU-CVE-2024-26923
Ubuntu:22.04:LTSlinux-aws-6.86.8.0-1011.12~22.04.1UBUNTU-CVE-2024-26923
Ubuntu:22.04:LTSlinux-azure5.15.0-1068.77USN-6917-1
Ubuntu:22.04:LTSlinux-azure5.15.0-1068.77UBUNTU-CVE-2024-26923
Ubuntu:24.04:LTSlinux-azure6.8.0-1010.10UBUNTU-CVE-2024-26923
Ubuntu:24.04:LTSlinux-azure6.8.0-1010.10USN-6893-1
Ubuntu:22.04:LTSlinux-azure-5.19no fix listedUBUNTU-CVE-2024-26923
Ubuntu:22.04:LTSlinux-azure-6.2no fix listedUBUNTU-CVE-2024-26923
Ubuntu:22.04:LTSlinux-azure-6.56.5.0-1024.25~22.04.1UBUNTU-CVE-2024-26923
Ubuntu:22.04:LTSlinux-azure-6.86.8.0-1010.10~22.04.1UBUNTU-CVE-2024-26923
Ubuntu:22.04:LTSlinux-azure-fde5.15.0-1068.77.1UBUNTU-CVE-2024-26923
Ubuntu:22.04:LTSlinux-azure-fde5.15.0-1068.77.1USN-6917-1
Ubuntu:22.04:LTSlinux-azure-fde-5.19no fix listedUBUNTU-CVE-2024-26923
Ubuntu:22.04:LTSlinux-azure-fde-6.2no fix listedUBUNTU-CVE-2024-26923
Ubuntu:22.04:LTSlinux-gcp5.15.0-1064.72USN-6898-1
Ubuntu:22.04:LTSlinux-gcp5.15.0-1064.72UBUNTU-CVE-2024-26923
Ubuntu:24.04:LTSlinux-gcp6.8.0-1010.11UBUNTU-CVE-2024-26923
Ubuntu:24.04:LTSlinux-gcp6.8.0-1010.11USN-6893-1
Ubuntu:22.04:LTSlinux-gcp-5.19no fix listedUBUNTU-CVE-2024-26923
Ubuntu:22.04:LTSlinux-gcp-6.2no fix listedUBUNTU-CVE-2024-26923
Ubuntu:22.04:LTSlinux-gcp-6.56.5.0-1024.26~22.04.1UBUNTU-CVE-2024-26923
Ubuntu:22.04:LTSlinux-gke5.15.0-1062.68USN-6898-1
Ubuntu:22.04:LTSlinux-gke5.15.0-1062.68UBUNTU-CVE-2024-26923
Ubuntu:24.04:LTSlinux-gke6.8.0-1006.9USN-6893-2
Ubuntu:24.04:LTSlinux-gke6.8.0-1006.9UBUNTU-CVE-2024-26923
Ubuntu:22.04:LTSlinux-gkeop5.15.0-1048.55UBUNTU-CVE-2024-26923
Ubuntu:22.04:LTSlinux-gkeop5.15.0-1048.55USN-6898-1
Ubuntu:22.04:LTSlinux-hwe-5.19no fix listedUBUNTU-CVE-2024-26923
Ubuntu:22.04:LTSlinux-hwe-6.2no fix listedUBUNTU-CVE-2024-26923
Ubuntu:22.04:LTSlinux-hwe-6.56.5.0-44.44~22.04.1UBUNTU-CVE-2024-26923
Ubuntu:22.04:LTSlinux-ibm5.15.0-1058.61USN-6898-1
Ubuntu:22.04:LTSlinux-ibm5.15.0-1058.61UBUNTU-CVE-2024-26923
Ubuntu:24.04:LTSlinux-ibm6.8.0-1008.8USN-6893-1
Ubuntu:24.04:LTSlinux-ibm6.8.0-1008.8UBUNTU-CVE-2024-26923
Ubuntu:24.04:LTSlinux-intel6.8.0-1007.14UBUNTU-CVE-2024-26923
Ubuntu:24.04:LTSlinux-intel6.8.0-1007.14USN-6893-1
Ubuntu:22.04:LTSlinux-intel-iotg5.15.0-1060.66UBUNTU-CVE-2024-26923
Ubuntu:22.04:LTSlinux-intel-iotg5.15.0-1060.66USN-6898-1
Ubuntu:22.04:LTSlinux-kvm5.15.0-1062.67UBUNTU-CVE-2024-26923
Ubuntu:22.04:LTSlinux-kvm5.15.0-1062.67USN-6898-1
Ubuntu:22.04:LTSlinux-lowlatency5.15.0-116.126USN-6898-2
Ubuntu:22.04:LTSlinux-lowlatency5.15.0-116.126UBUNTU-CVE-2024-26923
Ubuntu:24.04:LTSlinux-lowlatency6.8.0-38.38.1UBUNTU-CVE-2024-26923
Ubuntu:24.04:LTSlinux-lowlatency6.8.0-38.38.1USN-6893-1
Ubuntu:22.04:LTSlinux-lowlatency-hwe-5.19no fix listedUBUNTU-CVE-2024-26923
Ubuntu:22.04:LTSlinux-lowlatency-hwe-6.2no fix listedUBUNTU-CVE-2024-26923
Ubuntu:22.04:LTSlinux-lowlatency-hwe-6.56.5.0-44.44.1~22.04.1UBUNTU-CVE-2024-26923
Ubuntu:22.04:LTSlinux-nvidia5.15.0-1060.61UBUNTU-CVE-2024-26923
Ubuntu:22.04:LTSlinux-nvidia5.15.0-1060.61USN-6898-1
Ubuntu:24.04:LTSlinux-nvidia6.8.0-1009.9USN-6893-2
Ubuntu:24.04:LTSlinux-nvidia6.8.0-1009.9UBUNTU-CVE-2024-26923
Ubuntu:22.04:LTSlinux-nvidia-6.2no fix listedUBUNTU-CVE-2024-26923
Ubuntu:22.04:LTSlinux-nvidia-6.56.5.0-1023.24UBUNTU-CVE-2024-26923
Ubuntu:22.04:LTSlinux-nvidia-6.86.8.0-1009.9~22.04.1UBUNTU-CVE-2024-26923
Ubuntu:22.04:LTSlinux-nvidia-tegra5.15.0-1026.26UBUNTU-CVE-2024-26923
Ubuntu:22.04:LTSlinux-nvidia-tegra-igx5.15.0-1015.15UBUNTU-CVE-2024-26923
Ubuntu:22.04:LTSlinux-oem-5.17no fix listedUBUNTU-CVE-2024-26923
Ubuntu:22.04:LTSlinux-oem-6.0no fix listedUBUNTU-CVE-2024-26923
Ubuntu:22.04:LTSlinux-oem-6.1no fix listedUBUNTU-CVE-2024-26923
Ubuntu:22.04:LTSlinux-oem-6.56.5.0-1027.28UBUNTU-CVE-2024-26923
Ubuntu:24.04:LTSlinux-oem-6.86.8.0-1008.8UBUNTU-CVE-2024-26923
Ubuntu:24.04:LTSlinux-oem-6.86.8.0-1008.8USN-6893-1
Ubuntu:22.04:LTSlinux-oracle5.15.0-1063.69UBUNTU-CVE-2024-26923
Ubuntu:22.04:LTSlinux-oracle5.15.0-1063.69USN-6898-1
Ubuntu:24.04:LTSlinux-oracle6.8.0-1008.8UBUNTU-CVE-2024-26923
Ubuntu:24.04:LTSlinux-oracle6.8.0-1008.8USN-6918-1
Ubuntu:22.04:LTSlinux-oracle-6.56.5.0-1026.26~22.04.1UBUNTU-CVE-2024-26923
Ubuntu:22.04:LTSlinux-oracle-6.86.8.0-1008.8~22.04.1UBUNTU-CVE-2024-26923
Ubuntu:22.04:LTSlinux-raspi5.15.0-1058.61UBUNTU-CVE-2024-26923
Ubuntu:24.04:LTSlinux-raspi6.8.0-1007.7UBUNTU-CVE-2024-26923
Ubuntu:24.04:LTSlinux-raspi6.8.0-1007.7USN-6893-1
Ubuntu:22.04:LTSlinux-realtimeno fix listedUBUNTU-CVE-2024-26923
Ubuntu:22.04:LTSlinux-riscvno fix listedUBUNTU-CVE-2024-26923
Ubuntu:24.04:LTSlinux-riscv6.8.0-38.38.1UBUNTU-CVE-2024-26923
Ubuntu:22.04:LTSlinux-riscv-5.19no fix listedUBUNTU-CVE-2024-26923
Ubuntu:22.04:LTSlinux-riscv-6.5no fix listedUBUNTU-CVE-2024-26923
Ubuntu:22.04:LTSlinux-starfive-5.19no fix listedUBUNTU-CVE-2024-26923
Ubuntu:22.04:LTSlinux-starfive-6.2no fix listedUBUNTU-CVE-2024-26923
Ubuntu:22.04:LTSlinux-starfive-6.56.5.0-1017.18~22.04.1UBUNTU-CVE-2024-26923
Ubuntu:22.04:LTSlinux-xilinx-zynqmp5.15.0-1035.39UBUNTU-CVE-2024-26923
Ubuntu:22.04:LTSlinux-xilinx-zynqmp5.15.0-1035.39USN-7019-1

Affected products (as reported)

VendorProductVersions
Linux Linux 1fd05ba5a2f2aa8e7b9b52ef55df850e2e7d54c9 – before a36ae0ec2353015f0f6762e59f4c2dbc0c9064231fd05ba5a2f2aa8e7b9b52ef55df850e2e7d54c9 – before 343c5372d5e17b306db5f8f3c895539b06e3177f1fd05ba5a2f2aa8e7b9b52ef55df850e2e7d54c9 – before 2e2a03787f4f0abc0072350654ab0ef3324d9db31fd05ba5a2f2aa8e7b9b52ef55df850e2e7d54c9 – before e76c2678228f6aec74b305ae30c9374cc2f28a511fd05ba5a2f2aa8e7b9b52ef55df850e2e7d54c9 – before b75722be422c276b699200de90527d01c602ea7c1fd05ba5a2f2aa8e7b9b52ef55df850e2e7d54c9 – before 507cc232ffe53a352847893f8177d276c3b532a91fd05ba5a2f2aa8e7b9b52ef55df850e2e7d54c9 – before dbdf7bec5c920200077d693193f989cb1513f0091fd05ba5a2f2aa8e7b9b52ef55df850e2e7d54c9 – before 47d8ac011fe1c9251070e1bd64cb10b48193ec51
Linux Linux 2.6.23

References