CVE-2025-40214
Fixed in a distro release EPSS <1%CVSS 7.8
In the Linux kernel, the following vulnerability has been resolved: af_unix: Initialise scc_index in unix_add_edge(). Quang Le reported that the AF_UNIX GC could garbage-collect a receive queue of an alive in-flight socket, with a nice repro. The repro consists of three stages. 1) 1-a. Create a single cyclic reference with many sockets 1-b. close() all sockets 1-c. Trigger GC 2) 2-a. Pass sk-A to an embryo sk-B 2-b. Pass sk-X to sk-X 2-c. Trigger GC 3) 3-a. accept() the embryo sk-B 3-b. Pass sk-B to sk-C 3-c. close() the in-flight sk-A 3-d. Trigger GC As of 2-c, sk-A and sk-X are linked to unix_unvisited_vertices, and unix_walk_scc() groups them into two different SCCs: unix_sk(sk-A)->vertex->scc_index = 2 (UNIX_VERTEX_INDEX_START) unix_sk(sk-X)->vertex->scc_index = 3 Once GC completes, unix_graph_grouped is set to true. Also, unix_graph_maybe_cyclic is set to true due to sk-X's cyclic self-reference, which makes close() trigger GC. At 3-b, unix_add_edge() allocates unix_sk(sk-B)->vertex and links it to unix_unvisited_vertices. unix_update_graph() is called at 3-a. and 3-b., but neither unix_graph_grouped nor unix_graph_maybe_cyclic is changed because both sk-B's listener and sk-C are not in-flight. 3-c decrements sk-A's file refcnt to 1. Since unix_graph_grouped is true at 3-d, unix_walk_scc_fast() is finally called and iterates 3 sockets sk-A, sk-B, and sk-X: sk-A -> sk-B (-> sk-C) sk-X -> sk-X This is totally fine. All of them are not yet close()d and should be grouped into different SCCs. However, unix_vertex_dead() misjudges that sk-A and sk-B are in the same SCC and sk-A is dead. unix_sk(sk-A)->scc_index == unix_sk(sk-B)->scc_index <-- Wrong! && sk-A's file refcnt == unix_sk(sk-A)->vertex->out_degree ^-- 1 in-flight count for sk-B -> sk-A is dead !? The problem is that unix_add_edge() does not initialise scc_index. Stage 1) is used for heap spraying, making a newly allocated vertex have vertex->scc_index == 2 (UNIX_VERTEX_INDEX_START) set by unix_walk_scc() at 1-c. Let's track the max SCC index from the previous unix_walk_scc() call and assign the max + 1 to a new vertex's scc_index. This way, we can continue to avoid Tarjan's algorithm while preventing misjudgments.
Products: Linux, Siemens RUGGEDCOM RST2428P
Distro releases
| Release | Package | Fixed in |
|---|---|---|
| Amazon Linux 2023 | bpftool | 1:6.1.159-181.297.amzn2023 |
| Amazon Linux 2023 | bpftool6.12 | 1:6.12.63-84.121.amzn2023 |
| Amazon Linux 2023 | kernel | 1:6.1.159-181.297.amzn2023 |
| Amazon Linux 2023 | kernel-devel | 1:6.1.159-181.297.amzn2023 |
| Amazon Linux 2023 | kernel-headers | 1:6.1.159-181.297.amzn2023 |
| Amazon Linux 2023 | kernel-libbpf | 1:6.1.159-181.297.amzn2023 |
| Amazon Linux 2023 | kernel-libbpf-devel | 1:6.1.159-181.297.amzn2023 |
| Amazon Linux 2023 | kernel-libbpf-static | 1:6.1.159-181.297.amzn2023 |
| Amazon Linux 2023 | kernel-livepatch-6.1.159-181.297 | 1:1.0-0.amzn2023 |
| Amazon Linux 2023 | kernel-livepatch-6.12.63-84.121 | 1:1.0-0.amzn2023 |
| Amazon Linux 2023 | kernel-modules-extra | 1:6.1.159-181.297.amzn2023 |
| Amazon Linux 2023 | kernel-modules-extra-common | 1:6.1.159-181.297.amzn2023 |
| Amazon Linux 2023 | kernel-tools | 1:6.1.159-181.297.amzn2023 |
| Amazon Linux 2023 | kernel-tools-devel | 1:6.1.159-181.297.amzn2023 |
| Amazon Linux 2023 | kernel6.12 | 1:6.12.63-84.121.amzn2023 |
| Amazon Linux 2023 | kernel6.12-devel | 1:6.12.63-84.121.amzn2023 |
| Amazon Linux 2023 | kernel6.12-headers | 1:6.12.63-84.121.amzn2023 |
| Amazon Linux 2023 | kernel6.12-libbpf | 1:6.12.63-84.121.amzn2023 |
| Amazon Linux 2023 | kernel6.12-libbpf-devel | 1:6.12.63-84.121.amzn2023 |
| Amazon Linux 2023 | kernel6.12-libbpf-static | 1:6.12.63-84.121.amzn2023 |
| Amazon Linux 2023 | kernel6.12-modules-extra | 1:6.12.63-84.121.amzn2023 |
| Amazon Linux 2023 | kernel6.12-modules-extra-common | 1:6.12.63-84.121.amzn2023 |
| Amazon Linux 2023 | kernel6.12-tools | 1:6.12.63-84.121.amzn2023 |
| Amazon Linux 2023 | kernel6.12-tools-devel | 1:6.12.63-84.121.amzn2023 |
| Amazon Linux 2023 | perf | 1:6.1.159-181.297.amzn2023 |
| Amazon Linux 2023 | perf6.12 | 1:6.12.63-84.121.amzn2023 |
| Amazon Linux 2023 | python3-perf | 1:6.1.159-181.297.amzn2023 |
| Amazon Linux 2023 | python3-perf6.12 | 1:6.12.63-84.121.amzn2023 |
| Debian 11 | linux-6.1 | 6.1.159-1~deb11u1 |
| Debian 12 | linux | 6.1.159-1 |
| Debian 13 | linux | 6.12.63-1 |
| Debian 14 | linux | 6.17.9-1 |
| SUSE Linux Enterprise High Availability Extension 16.0 | kernel-default | 6.12.0-160000.9.1 |
| SUSE Linux Enterprise Server 16.0 | kernel-64kb | 6.12.0-160000.9.1 |
| SUSE Linux Enterprise Server 16.0 | kernel-azure | 6.12.0-160000.9.1 |
| SUSE Linux Enterprise Server 16.0 | kernel-default | 6.12.0-160000.9.1 |
| SUSE Linux Enterprise Server 16.0 | kernel-default-base | 6.12.0-160000.9.1.160000.2.6 |
| SUSE Linux Enterprise Server 16.0 | kernel-docs | 6.12.0-160000.9.1 |
| SUSE Linux Enterprise Server 16.0 | kernel-kvmsmall | 6.12.0-160000.9.1 |
| SUSE Linux Enterprise Server 16.0 | kernel-livepatch-SLE16_Update_0 | 8-160000.4.3 |
| SUSE Linux Enterprise Server 16.0 | kernel-livepatch-SLE16_Update_1 | 6-160000.1.1 |
| SUSE Linux Enterprise Server 16.0 | kernel-livepatch-SLE16_Update_2 | 4-160000.1.1 |
| SUSE Linux Enterprise Server 16.0 | kernel-livepatch-SLE16_Update_3 | 3-160000.1.1 |
| SUSE Linux Enterprise Server 16.0 | kernel-obs-qa | 6.12.0-160000.9.1 |
| SUSE Linux Enterprise Server 16.0 | kernel-source | 6.12.0-160000.9.1 |
| SUSE Linux Enterprise Server 16.0 | kernel-syms | 6.12.0-160000.9.1 |
| SUSE Linux Enterprise Server 16.0 | kernel-zfcpdump | 6.12.0-160000.9.1 |
| SUSE Linux Enterprise Server for SAP applications 16.0 | kernel-64kb | 6.12.0-160000.9.1 |
| SUSE Linux Enterprise Server for SAP applications 16.0 | kernel-azure | 6.12.0-160000.9.1 |
| SUSE Linux Enterprise Server for SAP applications 16.0 | kernel-default | 6.12.0-160000.9.1 |
| SUSE Linux Enterprise Server for SAP applications 16.0 | kernel-default-base | 6.12.0-160000.9.1.160000.2.6 |
| SUSE Linux Enterprise Server for SAP applications 16.0 | kernel-docs | 6.12.0-160000.9.1 |
| SUSE Linux Enterprise Server for SAP applications 16.0 | kernel-kvmsmall | 6.12.0-160000.9.1 |
| SUSE Linux Enterprise Server for SAP applications 16.0 | kernel-livepatch-SLE16_Update_0 | 8-160000.4.3 |
| SUSE Linux Enterprise Server for SAP applications 16.0 | kernel-livepatch-SLE16_Update_1 | 6-160000.1.1 |
| SUSE Linux Enterprise Server for SAP applications 16.0 | kernel-livepatch-SLE16_Update_2 | 4-160000.1.1 |
| SUSE Linux Enterprise Server for SAP applications 16.0 | kernel-livepatch-SLE16_Update_3 | 3-160000.1.1 |
| SUSE Linux Enterprise Server for SAP applications 16.0 | kernel-obs-qa | 6.12.0-160000.9.1 |
| SUSE Linux Enterprise Server for SAP applications 16.0 | kernel-source | 6.12.0-160000.9.1 |
| SUSE Linux Enterprise Server for SAP applications 16.0 | kernel-syms | 6.12.0-160000.9.1 |
| SUSE Linux Enterprise Server for SAP applications 16.0 | kernel-zfcpdump | 6.12.0-160000.9.1 |
| SUSE Linux Micro 6.2 | kernel-64kb | 6.12.0-160000.9.1 |
| SUSE Linux Micro 6.2 | kernel-default | 6.12.0-160000.9.1 |
| SUSE Linux Micro 6.2 | kernel-default-base | 6.12.0-160000.9.1.160000.2.6 |
| SUSE Linux Micro 6.2 | kernel-livepatch-SLE16-RT_Update_0 | 6-160000.3.4 |
| SUSE Linux Micro 6.2 | kernel-livepatch-SLE16-RT_Update_1 | 5-160000.1.1 |
| SUSE Linux Micro 6.2 | kernel-livepatch-SLE16-RT_Update_2 | 3-160000.1.1 |
| SUSE Linux Micro 6.2 | kernel-livepatch-SLE16-RT_Update_3 | 2-160000.1.1 |
| SUSE Linux Micro 6.2 | kernel-livepatch-SLE16_Update_0 | 8-160000.4.3 |
| SUSE Linux Micro 6.2 | kernel-livepatch-SLE16_Update_1 | 6-160000.1.1 |
| SUSE Linux Micro 6.2 | kernel-livepatch-SLE16_Update_2 | 4-160000.1.1 |
| SUSE Linux Micro 6.2 | kernel-livepatch-SLE16_Update_3 | 3-160000.1.1 |
| SUSE Linux Micro 6.2 | kernel-rt | 6.12.0-160000.9.1 |
| SUSE Linux Micro 6.2 | kernel-source | 6.12.0-160000.9.1 |
| SUSE Linux Micro Extras 6.2 | kernel-obs-build | 6.12.0-160000.9.1 |
| SUSE Linux Micro Extras 6.2 | kernel-syms | 6.12.0-160000.9.1 |
| Ubuntu 16.04 LTS | linux-hwe-edge | no fix |
| Ubuntu 18.04 LTS | linux-aws-5.0 | no fix |
| Ubuntu 18.04 LTS | linux-aws-5.3 | no fix |
| Ubuntu 18.04 LTS | linux-azure | no fix |
| Ubuntu 18.04 LTS | linux-azure-5.3 | no fix |
| Ubuntu 18.04 LTS | linux-azure-edge | no fix |
| Ubuntu 18.04 LTS | linux-gcp | no fix |
| Ubuntu 18.04 LTS | linux-gcp-5.3 | no fix |
| Ubuntu 18.04 LTS | linux-gke-4.15 | no fix |
| Ubuntu 18.04 LTS | linux-gke-5.4 | no fix |
| Ubuntu 18.04 LTS | linux-gkeop-5.4 | no fix |
| Ubuntu 18.04 LTS | linux-hwe | no fix |
| Ubuntu 18.04 LTS | linux-hwe-edge | no fix |
| Ubuntu 18.04 LTS | linux-oem | no fix |
| Ubuntu 18.04 LTS | linux-oracle-5.0 | no fix |
| Ubuntu 18.04 LTS | linux-oracle-5.3 | no fix |
| Ubuntu 20.04 LTS | linux-aws-5.11 | no fix |
| Ubuntu 20.04 LTS | linux-aws-5.13 | no fix |
| Ubuntu 20.04 LTS | linux-aws-5.8 | no fix |
| Ubuntu 20.04 LTS | linux-azure-5.11 | no fix |
| Ubuntu 20.04 LTS | linux-azure-5.13 | no fix |
| Ubuntu 20.04 LTS | linux-azure-5.8 | no fix |
| Ubuntu 20.04 LTS | linux-azure-fde | no fix |
| Ubuntu 20.04 LTS | linux-gcp-5.11 | no fix |
| Ubuntu 20.04 LTS | linux-gcp-5.13 | no fix |
| Ubuntu 20.04 LTS | linux-gcp-5.8 | no fix |
| Ubuntu 20.04 LTS | linux-gke | no fix |
| Ubuntu 20.04 LTS | linux-gke-5.15 | no fix |
| Ubuntu 20.04 LTS | linux-gkeop | no fix |
| Ubuntu 20.04 LTS | linux-gkeop-5.15 | no fix |
| Ubuntu 20.04 LTS | linux-hwe-5.11 | no fix |
| Ubuntu 20.04 LTS | linux-hwe-5.13 | no fix |
| Ubuntu 20.04 LTS | linux-hwe-5.8 | no fix |
| Ubuntu 20.04 LTS | linux-intel-5.13 | no fix |
| Ubuntu 20.04 LTS | linux-oem-5.10 | no fix |
| Ubuntu 20.04 LTS | linux-oem-5.13 | no fix |
| Ubuntu 20.04 LTS | linux-oem-5.14 | no fix |
| Ubuntu 20.04 LTS | linux-oem-5.6 | no fix |
| Ubuntu 20.04 LTS | linux-oracle-5.11 | no fix |
| Ubuntu 20.04 LTS | linux-oracle-5.13 | no fix |
| Ubuntu 20.04 LTS | linux-oracle-5.8 | no fix |
| Ubuntu 20.04 LTS | linux-raspi2 | no fix |
| Ubuntu 20.04 LTS | linux-riscv | no fix |
| Ubuntu 20.04 LTS | linux-riscv-5.11 | no fix |
| Ubuntu 20.04 LTS | linux-riscv-5.8 | no fix |
| Ubuntu 22.04 LTS | linux-allwinner-5.19 | no fix |
| Ubuntu 22.04 LTS | linux-aws-5.19 | no fix |
| Ubuntu 22.04 LTS | linux-aws-6.2 | no fix |
| Ubuntu 22.04 LTS | linux-aws-6.5 | no fix |
| Ubuntu 22.04 LTS | linux-azure-5.19 | no fix |
| Ubuntu 22.04 LTS | linux-azure-6.2 | no fix |
| Ubuntu 22.04 LTS | linux-azure-6.5 | no fix |
| Ubuntu 22.04 LTS | linux-azure-fde-5.19 | no fix |
| Ubuntu 22.04 LTS | linux-azure-fde-6.2 | no fix |
| Ubuntu 22.04 LTS | linux-gcp-5.19 | no fix |
| Ubuntu 22.04 LTS | linux-gcp-6.2 | no fix |
| Ubuntu 22.04 LTS | linux-gcp-6.5 | no fix |
| Ubuntu 22.04 LTS | linux-hwe-5.19 | no fix |
| Ubuntu 22.04 LTS | linux-hwe-6.2 | no fix |
| Ubuntu 22.04 LTS | linux-hwe-6.5 | no fix |
| Ubuntu 22.04 LTS | linux-intel-iot-realtime | no fix |
| Ubuntu 22.04 LTS | linux-lowlatency-hwe-5.19 | no fix |
| Ubuntu 22.04 LTS | linux-lowlatency-hwe-6.2 | no fix |
| Ubuntu 22.04 LTS | linux-lowlatency-hwe-6.5 | no fix |
| Ubuntu 22.04 LTS | linux-nvidia-6.2 | no fix |
| Ubuntu 22.04 LTS | linux-nvidia-6.5 | no fix |
| Ubuntu 22.04 LTS | linux-oem-5.17 | no fix |
| Ubuntu 22.04 LTS | linux-oem-6.0 | no fix |
| Ubuntu 22.04 LTS | linux-oem-6.1 | no fix |
| Ubuntu 22.04 LTS | linux-oem-6.5 | no fix |
| Ubuntu 22.04 LTS | linux-oracle-6.5 | no fix |
| Ubuntu 22.04 LTS | linux-realtime | no fix |
| Ubuntu 22.04 LTS | linux-riscv | no fix |
| Ubuntu 22.04 LTS | linux-riscv-5.19 | no fix |
| Ubuntu 22.04 LTS | linux-riscv-6.5 | no fix |
| Ubuntu 22.04 LTS | linux-starfive-5.19 | no fix |
| Ubuntu 22.04 LTS | linux-starfive-6.2 | no fix |
| Ubuntu 22.04 LTS | linux-starfive-6.5 | no fix |
| Ubuntu 24.04 LTS | linux-aws-6.14 | no fix |
| Ubuntu 24.04 LTS | linux-aws-6.17 | 6.17.0-1007.7~24.04.1 |
| Ubuntu 24.04 LTS | linux-azure-6.11 | no fix |
| Ubuntu 24.04 LTS | linux-azure-6.14 | no fix |
| Ubuntu 24.04 LTS | linux-azure-fde-6.14 | no fix |
| Ubuntu 24.04 LTS | linux-azure-nvidia-6.14 | no fix |
| Ubuntu 24.04 LTS | linux-gcp-6.11 | no fix |
| Ubuntu 24.04 LTS | linux-gcp-6.14 | no fix |
| Ubuntu 24.04 LTS | linux-gcp-6.17 | 6.17.0-1008.8~24.04.1 |
| Ubuntu 24.04 LTS | linux-hwe-6.11 | no fix |
| Ubuntu 24.04 LTS | linux-hwe-6.14 | no fix |
| Ubuntu 24.04 LTS | linux-lowlatency-hwe-6.11 | no fix |
| Ubuntu 24.04 LTS | linux-nvidia-6.11 | no fix |
| Ubuntu 24.04 LTS | linux-nvidia-6.17 | 6.17.0-1008.8 |
| Ubuntu 24.04 LTS | linux-oem-6.11 | no fix |
| Ubuntu 24.04 LTS | linux-oem-6.14 | no fix |
| Ubuntu 24.04 LTS | linux-oem-6.17 | 6.17.0-1010.10 |
| Ubuntu 24.04 LTS | linux-oem-6.8 | no fix |
| Ubuntu 24.04 LTS | linux-oracle-6.14 | no fix |
| Ubuntu 24.04 LTS | linux-oracle-6.17 | 6.17.0-1007.7~24.04.1 |
| Ubuntu 24.04 LTS | linux-raspi-realtime | no fix |
| Ubuntu 24.04 LTS | linux-realtime | no fix |
| Ubuntu 24.04 LTS | linux-riscv | no fix |
| Ubuntu 24.04 LTS | linux-riscv-6.14 | no fix |
| Ubuntu 25.10 | linux | 6.17.0-12.12 |
| Ubuntu 25.10 | linux-aws | 6.17.0-1006.6 |
| Ubuntu 25.10 | linux-azure | 6.17.0-1007.7 |
| Ubuntu 25.10 | linux-azure-fde | no fix |
| Ubuntu 25.10 | linux-gcp | 6.17.0-1006.6 |
| Ubuntu 25.10 | linux-oracle | 6.17.0-1006.6 |
| Ubuntu 25.10 | linux-raspi | 6.17.0-1007.7 |
| Ubuntu 25.10 | linux-realtime | 6.17.0-1005.6 |
| Ubuntu 25.10 | linux-riscv | 6.17.0-12.12.1 |
| Ubuntu Pro 18.04 LTS | linux-hwe-5.4 | 5.4.0-225.245~18.04.1 |
| Ubuntu Pro 20.04 LTS | linux | 5.4.0-225.245 |
| Ubuntu Pro 20.04 LTS | linux-aws | 5.4.0-1154.164 |
| Ubuntu Pro 20.04 LTS | linux-aws-5.15 | 5.15.0-1099.106~20.04.1 |
| Ubuntu Pro 20.04 LTS | linux-azure-5.15 | 5.15.0-1103.112~20.04.1 |
| Ubuntu Pro 20.04 LTS | linux-gcp-5.15 | 5.15.0-1099.108~20.04.1 |
| Ubuntu Pro 20.04 LTS | linux-hwe-5.15 | 5.15.0-168.178~20.04.1 |
| Ubuntu Pro 20.04 LTS | linux-ibm-5.15 | 5.15.0-1093.96~20.04.1 |
| Ubuntu Pro 20.04 LTS | linux-lowlatency-hwe-5.15 | 5.15.0-168.178~20.04.1 |
| Ubuntu Pro 20.04 LTS | linux-oracle-5.15 | 5.15.0-1096.102~20.04.1 |
| Ubuntu Pro 22.04 LTS | linux | 5.15.0-168.178 |
| Ubuntu Pro 22.04 LTS | linux-aws | 5.15.0-1099.106 |
| Ubuntu Pro 22.04 LTS | linux-aws-6.8 | 6.8.0-1046.49~22.04.1 |
| Ubuntu Pro 22.04 LTS | linux-azure | 5.15.0-1103.112 |
| Ubuntu Pro 22.04 LTS | linux-gcp | 5.15.0-1099.108 |
| Ubuntu Pro 22.04 LTS | linux-gcp-6.8 | 6.8.0-1047.50~22.04.2 |
| Ubuntu Pro 22.04 LTS | linux-gke | 5.15.0-1095.101 |
| Ubuntu Pro 22.04 LTS | linux-ibm | 5.15.0-1093.96 |
| Ubuntu Pro 22.04 LTS | linux-ibm-6.8 | 6.8.0-1044.44~22.04.1 |
| Ubuntu Pro 22.04 LTS | linux-oracle | 5.15.0-1096.102 |
| Ubuntu Pro 24.04 LTS | linux | 6.8.0-100.100 |
| Ubuntu Pro 24.04 LTS | linux-aws | 6.8.0-1046.49 |
| Ubuntu Pro 24.04 LTS | linux-azure | 6.8.0-1046.52 |
| Ubuntu Pro 24.04 LTS | linux-gcp | 6.8.0-1047.50 |
| Ubuntu Pro 24.04 LTS | linux-ibm | 6.8.0-1044.44 |
| Ubuntu Pro 24.04 LTS | linux-oracle | 6.8.0-1043.44 |
| Ubuntu Pro 25.10 | linux | 6.17.0-12.12 |
| Ubuntu Pro Realtime 24.04 LTS | linux-realtime-6.14 | no fix |
| Ubuntu Pro Realtime 24.04 LTS | linux-realtime-6.17 | 6.17.0-1006.7~24.04.1 |
| openSUSE Leap 16.0 | dtb-aarch64 | 6.12.0-160000.9.1 |
| openSUSE Leap 16.0 | kernel-64kb | 6.12.0-160000.9.1 |
| openSUSE Leap 16.0 | kernel-azure | 6.12.0-160000.9.1 |
| openSUSE Leap 16.0 | kernel-default | 6.12.0-160000.9.1 |
| openSUSE Leap 16.0 | kernel-default-base | 6.12.0-160000.9.1.160000.2.6 |
| openSUSE Leap 16.0 | kernel-docs | 6.12.0-160000.9.1 |
| openSUSE Leap 16.0 | kernel-kvmsmall | 6.12.0-160000.9.1 |
| openSUSE Leap 16.0 | kernel-obs-build | 6.12.0-160000.9.1 |
| openSUSE Leap 16.0 | kernel-obs-qa | 6.12.0-160000.9.1 |
| openSUSE Leap 16.0 | kernel-rt | 6.12.0-160000.9.1 |
| openSUSE Leap 16.0 | kernel-source | 6.12.0-160000.9.1 |
| openSUSE Leap 16.0 | kernel-syms | 6.12.0-160000.9.1 |
| openSUSE Leap 16.0 | kernel-zfcpdump | 6.12.0-160000.9.1 |