net/x25: fix use-after-free in x25_kill_by_neigh() (Linux Linux)
En bref
- Source
- NVD
- EPSS
- EPSS 0.54 % · centile 45 ()
- État
- PUBLISHED
- Publiée
- Mise à jour
- Attribuée par
- Linux
- Statut NVD
- Received
Description
In the Linux kernel, the following vulnerability has been resolved: net/x25: fix use-after-free in x25_kill_by_neigh() x25_kill_by_neigh() walks the global X.25 socket list looking for sockets attached to a terminating neighbour. x25_list_lock protects list membership while the lookup is in progress, but it does not pin a socket's lifetime after the lock is dropped. The function currently drops x25_list_lock before calling lock_sock(s). A concurrent close can run x25_release(), remove the same socket from x25_list, and drop the last socket reference in that window. The neighbour teardown path can then lock or inspect a freed struct sock/struct x25_sock. Take sock_hold(s) while x25_list_lock still proves that the list entry is live, then drop the temporary reference after the socket has been locked, rechecked, and released. Recheck x25_sk(s)->neighbour after lock_sock(), because another path may have disconnected the socket before this path acquired the socket lock. Restart the list walk after each disconnect because the list lock was dropped and the previous iterator state may no longer be valid. A QEMU/KASAN run against origin/master reproduced a slab-use-after-free in x25_kill_by_neigh().
Références
- https://git.kernel.org/stable/c/db6b04f6d65549bb1c7bc8e64a92e7b7d03be676
- https://git.kernel.org/stable/c/5e8a754ac2009a88a7b99ab61eab6296eed360f3
- https://git.kernel.org/stable/c/c98a454d1a9e1bd09d5fd55a7aa589b199340b88
- https://git.kernel.org/stable/c/3f4fe26c20c30bd5a2e2583e80685def0b27858c
- https://git.kernel.org/stable/c/610678d4be94b619c751572e8a58de705592cd07
- https://git.kernel.org/stable/c/ec6d91a1bf2ebd767d3d43f6d249ee0ed3f4558a
- https://git.kernel.org/stable/c/9aabda553184346f74810e2ee1d96920b4612e3f
- https://git.kernel.org/stable/c/5499e0602d2faafd42c580d25f615903c3fbe11b
Scores
| Version | Score | Vecteur | Évalué par |
|---|---|---|---|
| CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | Linux |
| CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | NVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary) |
Références européennes
- ENISA EUVD · EUVD-2026-55518
- GCVE · GCVE-0-2026-68137
Avis du CERT-FR
- CERTFR-2026-AVI-1385 — Multiples vulnérabilités dans les produits VMware · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1333 — Multiples vulnérabilités dans le noyau Linux d'Ubuntu · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1286 — Multiples vulnérabilités dans le noyau Linux d'Ubuntu · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1255 — Multiples vulnérabilités dans le noyau Linux de SUSE · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1203 — Multiples vulnérabilités dans le noyau Linux d'Ubuntu · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1202 — Multiples vulnérabilités dans le noyau Linux de SUSE · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1164 — Multiples vulnérabilités dans le noyau Linux de SUSE · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1163 — Multiples vulnérabilités dans le noyau Linux de Debian LTS · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1069 — Multiples vulnérabilités dans le noyau Linux de Debian LTS · cert.ssi.gouv.fr
Produits affectés
| Produit | Versions |
|---|---|
| Linux · Linux | affected 5c94b6205e87411dbe9dc1ca088eb36b8837fb47 < db6b04f6d65549bb1c7bc8e64a92e7b7d03be676 ; affected 409570a619c1cda2e0fde6018a256b9e3d3ba0ee < 5e8a754ac2009a88a7b99ab61eab6296eed360f3 ; affected 7781607938c8371d4c2b243527430241c62e39c2 < c98a454d1a9e1bd09d5fd55a7aa589b199340b88 ; affected 7781607938c8371d4c2b243527430241c62e39c2 < 3f4fe26c20c30bd5a2e2583e80685def0b27858c ; affected 7781607938c8371d4c2b243527430241c62e39c2 < 610678d4be94b619c751572e8a58de705592cd07 ; affected 7781607938c8371d4c2b243527430241c62e39c2 < ec6d91a1bf2ebd767d3d43f6d249ee0ed3f4558a |
| Linux · Linux | affected 5.18 ; unaffected 0 < 5.18 ; unaffected 5.10.265 ≤ 5.10.* ; unaffected 5.15.216 ≤ 5.15.* ; unaffected 6.1.183 ≤ 6.1.* ; unaffected 6.6.148 ≤ 6.6.* |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| CERT-FR (ANSSI) | Licence Ouverte / Etalab 2.0 |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |