1. Accueil
  2. Vulnérabilités
  3. CVE-2025-38465

CVE-2025-38465

netlink: Fix wraparounds of sk->sk_rmem_alloc.

Publiée le 25 juil. 2025 · modifiée le 5 nov. 2026 · Sources : NVD, CNA (éditeur ou attributeur), EPSS (FIRST)

Faible 25/100

Résumé

In the Linux kernel, the following vulnerability has been resolved: netlink: Fix wraparounds of sk->sk_rmem_alloc. Netlink has this pattern in some places if (atomic_read(&sk->sk_rmem_alloc) > sk->sk_rcvbuf) atomic_add(skb->truesize, &sk->sk_rmem_alloc); , which has the same problem fixed by commit 5a465a0da13e ("udp: Fix multiple wraparounds of sk->sk_rmem_alloc."). For example, if we set INT_MAX to SO_RCVBUFFORCE, the condition is always false as the two operands are of int. Then, a single socket can eat as many skb as possible until OOM happens, and we can see multiple wraparounds of sk->sk_rmem_alloc. Let's fix it by using atomic_add_return() and comparing the two variables as unsigned int. Before: [root@fedora ~]# ss -f netlink Recv-Q Send-Q Local Address:Port Peer Address:Port -1668710080 0 rtnl:nl_wraparound/293 * After: [root@fedora ~]# ss -f netlink Recv-Q Send-Q Local Address:Port Peer Address:Port 2147483072 0 rtnl:nl_wraparound/290 * ^ `--- INT_MAX - 576

Aucune traduction française : description d’origine affichée.

Produits et versions affectés

Linux (10 ligne(s))
Linux
ProduitVersionsCorrigé dansSource
Linux 2.6.12 — CNA (éditeur ou attributeur)
Linux kernel de 2.6.13 (inclus) à 5.4.296 (exclu) — NVD
Linux kernel de 5.5 (inclus) à 5.10.240 (exclu) — NVD
Linux kernel de 5.11 (inclus) à 5.15.189 (exclu) — NVD
Linux kernel de 5.16 (inclus) à 6.1.146 (exclu) — NVD
Linux kernel de 6.2 (inclus) à 6.6.99 (exclu) — NVD
Linux kernel de 6.7 (inclus) à 6.12.39 (exclu) — NVD
Linux kernel de 6.13 (inclus) à 6.15.7 (exclu) — NVD
Linux kernel 2.6.12 — NVD
Linux kernel 6.16 — NVD
Debian (1 ligne(s))
Debian
ProduitVersionsCorrigé dansSource
Debian linux 11.0 — 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

  1. — Publication de la CVE (cve)

Références

Provenance des données

Statut
NVD
Date de publication
NVD
Description
CNA (éditeur ou attributeur)
Score CVSS
NVD
Faiblesse (CWE)
NVD
Vecteur CVSS
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H (CVSS 3.1, NVD)
Faiblesse
CWE-401 · Autre (CWE-401)

Comment sont obtenues et calculées ces données