- Accueil
- Vulnérabilités
- CVE-2026-64581
CVE-2026-64581
xfrm: fix sk_dst_cache double-free in xfrm_user_policy()
Résumé
In the Linux kernel, the following vulnerability has been resolved: xfrm: fix sk_dst_cache double-free in xfrm_user_policy() xfrm_user_policy() clears the socket dst cache with __sk_dst_reset(), i.e. the non-atomic __sk_dst_set(sk, NULL): it reads sk_dst_cache with rcu_dereference_protected(), stores NULL and dst_release()s the old dst. That is only safe if no other thread modifies sk_dst_cache concurrently. For a connected UDP socket that does not hold: the transmit fast path (udp_sendmsg -> sk_dst_check -> sk_dst_reset) resets the cache locklessly with an atomic xchg(). A per-socket policy change racing a send can make both sides observe the same old dst and each dst_release() it, dropping the socket's single reference twice and freeing the xfrm_dst bundle while it is still referenced: BUG: KASAN: slab-use-after-free in dst_release Write of size 4 at addr ffff88801897b6c0 by task exploit/155 Call Trace: ... dst_release (... ./include/linux/rcuref.h:109) xfrm_user_policy (./include/net/sock.h:2239 ./include/net/sock.h:2256 net/xfrm/xfrm_state.c:3053) do_ip_setsockopt (net/ipv4/ip_sockglue.c:1347) ip_setsockopt (net/ipv4/ip_sockglue.c:1417) do_sock_setsockopt (net/socket.c:2368) __sys_setsockopt (net/socket.c:2393) __x64_sys_setsockopt (net/socket.c:2396) do_syscall_64 (arch/x86/entry/syscall_64.c:94) entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:121) Reachable by an unprivileged user via a user+network namespace. Use the atomic sk_dst_reset() so the cache is cleared and released with a single xchg(): whichever side wins releases the dst once, the other sees NULL and does nothing. Behaviour is otherwise unchanged.
Aucune traduction française : description d’origine affichée.
Produits et versions affectés
Linux (22 ligne(s))
| Produit | Versions | Corrigé dans | Source |
|---|---|---|---|
| Linux | de 3.16.52 (inclus) à 3.17 (exclu) |
— | CNA (éditeur ou attributeur) |
| Linux | de 4.4.163 (inclus) à 4.5 (exclu) |
— | CNA (éditeur ou attributeur) |
| Linux | de 3.18.101 (inclus) à 3.19 (exclu) |
— | CNA (éditeur ou attributeur) |
| Linux | de 4.1.52 (inclus) à 4.2 (exclu) |
— | CNA (éditeur ou attributeur) |
| Linux | de 4.4.123 (inclus) à 4.5 (exclu) |
— | CNA (éditeur ou attributeur) |
| Linux | de 4.9.89 (inclus) à 4.10 (exclu) |
— | CNA (éditeur ou attributeur) |
| Linux | 4.14 |
— | CNA (éditeur ou attributeur) |
| Linux kernel | de 3.16.52 (inclus) à 3.17 (exclu) |
— | NVD |
| Linux kernel | de 3.18.101 (inclus) à 3.19 (exclu) |
— | NVD |
| Linux kernel | de 4.1.52 (inclus) à 4.2 (exclu) |
— | NVD |
| Linux kernel | de 4.4.123 (inclus) à 4.5 (exclu) |
— | NVD |
| Linux kernel | de 4.4.163 (inclus) à 4.5 (exclu) |
— | NVD |
| Linux kernel | de 4.9.89 (inclus) à 4.10 (exclu) |
— | NVD |
| Linux kernel | de 4.14.1 (inclus) à 5.10.267 (exclu) |
— | NVD |
| Linux kernel | de 5.11 (inclus) à 5.15.218 (exclu) |
— | NVD |
| Linux kernel | de 5.16 (inclus) à 6.1.185 (exclu) |
— | NVD |
| Linux kernel | de 6.2 (inclus) à 6.6.154 (exclu) |
— | NVD |
| Linux kernel | de 6.7 (inclus) à 6.12.106 (exclu) |
— | NVD |
| Linux kernel | de 6.13 (inclus) à 6.18.47 (exclu) |
— | NVD |
| Linux kernel | de 6.19 (inclus) à 7.1.6 (exclu) |
— | NVD |
| Linux kernel | 4.14 |
— | NVD |
| Linux kernel | 7.2 |
— | NVD |
Correctif
Non renseigné par l’éditeur.
Contournement
Aucun contournement renseigné.
Savoir si vous êtes touché
Aucune méthode de vérification renseignée.
Chronologie
- — Publication de la CVE (cve)
- — Avis du CERT-FR (certfr:CERTFR-2026-AVI-1286)
- — Avis du CERT-FR (certfr:CERTFR-2026-AVI-1288)
- — Avis du CERT-FR (certfr:CERTFR-2026-AVI-1333)
- — Avis du CERT-FR (certfr:CERTFR-2026-AVI-1385)
- — Avis du CERT-FR (certfr:CERTFR-2026-AVI-1469)
- — Avis du CERT-FR (certfr:CERTFR-2026-AVI-1537)
Avis CERT-FR
- CERTFR-2026-AVI-1537 — Multiples vulnérabilités dans le noyau Linux d'Ubuntu (13 novembre 2026) 13 nov. 2026
- CERTFR-2026-AVI-1469 — Multiples vulnérabilités dans le noyau Linux d'Ubuntu (06 novembre 2026) 6 nov. 2026
- CERTFR-2026-AVI-1385 — Multiples vulnérabilités dans les produits VMware (26 octobre 2026) 26 oct. 2026
- CERTFR-2026-AVI-1333 — Multiples vulnérabilités dans le noyau Linux d'Ubuntu (16 octobre 2026) 16 oct. 2026
- CERTFR-2026-AVI-1288 — Multiples vulnérabilités dans le noyau Linux de SUSE (09 octobre 2026) 9 oct. 2026
- CERTFR-2026-AVI-1286 — Multiples vulnérabilités dans le noyau Linux d'Ubuntu (09 octobre 2026) 9 oct. 2026
Références
- https://git.kernel.org/stable/c/0ea8f06454012d9e7f9c6e6253df710949bf6294Patch
- https://git.kernel.org/stable/c/8dd8929b71c4f06c614f8f54c2cc070453faae16Patch
- https://git.kernel.org/stable/c/96b678d08268b5f5c6fc99d4289d9b7e334fc683Patch
- https://git.kernel.org/stable/c/a9340ebdc13f8bb5063c0bc0b037ee7e640d4ae9Patch
- https://git.kernel.org/stable/c/c283e9ada7fcb7dd4b10592623086b2e6d2f9925Patch
- https://git.kernel.org/stable/c/e8686fd8d18b99f3a9038683045b2f2338a7706dPatch
- https://git.kernel.org/stable/c/f0ab9a71167bae308e05ab13b65e2007504a603fPatch
- https://git.kernel.org/stable/c/f833821e4b52ab6335d443ede5fb79c38e61d19aPatch
Provenance des données
- Statut
- NVD
- Date de publication
- NVD
- Description
- CNA (éditeur ou attributeur)
- Score CVSS
- CNA (éditeur ou attributeur)
- Faiblesse (CWE)
- NVD
- Vecteur CVSS
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H(CVSS 3.1, CNA:416baaa9-dc9f-4396-8d5f-8c081fb06d67)- Faiblesse
- CWE-415 · Corruption mémoire