9.8critical
net/x25: Fix potential double free of skb
- Severity
- 9.8critical CVSS:3.1 by Linux
- Exploit likelihood
- 0.75% (higher than 56% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: net/x25: Fix potential double free of skb When alloc_skb fails in x25_queue_rx_frame it calls kfree_skb(skb) at line 48 and returns 1 (error). This error propagates back through the call chain: x25_queue_rx_frame returns 1 | v x25_state3_machine receives the return value 1 and takes the else branch at line 278, setting queued=0 and returning 0 | v x25_process_rx_frame returns queued=0 | v x25_backlog_rcv at line 452 sees queued=0 and calls kfree_skb(skb) again This would free the same skb twice. Looking at x25_backlog_rcv: net/x25/x25_in.c:x25_backlog_rcv() { ... queued = x25_process_rx_frame(sk, skb); ... if (!queued) kfree_skb(skb); }
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 5d0aa038a90b30c9bedde0c41c1fdcd98ecb16e9, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 3f5e3005984645bf5bd129c6b13149879580b1fb, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before f782dd382203b2a8c4552a628431b7de65a19a7b, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 143d4fa68ae9efb83b0c55b12cc7f0d03732a2b1, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 524371398d8463ea7e101fce2cbf3915645d1730, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before fa1dbc93530b34fab0da9862426fe9c918c74dc0, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before c87dd137c0dad07cc55f98181ff380b0c23d2878, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before d10a26aa4d072320530e6968ef945c8c575edf61 and 1 more Not affected: before 2.6.12, from 5.10.253 up to 5.10.*, from 5.15.203 up to 5.15.*, from 6.1.168 up to 6.1.*, from 6.6.134 up to 6.6.*, from 6.12.81 up to 6.12.* | CVE List |
| linux linux_kernel | from 2.6.12.1 before 5.10.253, from 5.11 before 5.15.203, from 5.16 before 6.1.168, from 6.2 before 6.6.134, from 6.7 before 6.12.81, from 6.13 before 6.18.22, from 6.19 before 6.19.12, 2.6.12 and 1 more | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total.
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: net/x25: Fix potential double free of skb When alloc_skb fails in x25_queue_rx_frame it calls kfree_skb(skb) at line 48 and returns 1 (error). This error propagates back through the call chain: x25_queue_rx_frame returns 1 | v x25_state3_machine receives the return value 1 and takes the else branch at line 278, setting queued=0 and returning 0 | v x25_process_rx_frame returns queued=0 | v x25_backlog_rcv at line 452 sees queued=0 and calls kfree_skb(skb) again This would free the same skb twice. Looking at x25_backlog_rcv: net/x25/x25_in.c:x25_backlog_rcv() { ... queued = x25_process_rx_frame(sk, skb); ... if (!queued) kfree_skb(skb); }
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: net/x25: Corrige la posible doble liberación de skb Cuando alloc_skb falla en x25_queue_rx_frame, llama a kfree_skb(skb) en la línea 48 y devuelve 1 (error). Este error se propaga hacia atrás a través de la cadena de llamadas: x25_queue_rx_frame devuelve 1 | v x25_state3_machine recibe el valor de retorno 1 y toma la rama ’else’ en la línea 278, estableciendo queued=0 y devolviendo 0 | v x25_process_rx_frame devuelve queued=0 | v x25_backlog_rcv en la línea 452 ve queued=0 y llama a kfree_skb(skb) de nuevo Esto liberaría el mismo skb dos veces. Observando x25_backlog_rcv: net/x25/x25_in.c:x25_backlog_rcv() { ... queued = x25_process_rx_frame(sk, skb); ... if (!queued) kfree_skb(skb); }
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-43011 changed 2026-11-10 | CVE Terms of Use |
| NVD | CVE-2026-43011 changed 2026-11-11 | Public domain |