Skip to content
OpenAdvisories
High · 7.8 CVE-2025-40159 EUVD-2025-124924GHSA-9mvj-23j7-q46q

xsk: Harden userspace-supplied xdp_desc validation

Published Nov 12, 2025 · Updated Oct 15, 2026 · Assigned by Linux

Vendor: Linux Product: Linux Package: linux Package: linux Package: linux-allwinner-5.19 Package: linux-aws Package: linux-aws-5.0 Package: linux-aws-5.11 Package: linux-aws-5.13 Package: linux-aws-5.19 Package: linux-aws-5.3 Package: linux-aws-5.8 Package: linux-aws-6.14 Package: linux-aws-6.17 Package: linux-aws-6.2 Package: linux-aws-6.5 Package: linux-aws-6.8 Package: linux-aws-fips Package: linux-azure Package: linux-azure-5.11 Package: linux-azure-5.13 Package: linux-azure-5.19 Package: linux-azure-5.3 Package: linux-azure-5.8 Package: linux-azure-6.11 Package: linux-azure-6.14 Package: linux-azure-6.2 Package: linux-azure-6.5 Package: linux-azure-6.8 Package: linux-azure-edge Package: linux-azure-fde Package: linux-azure-fde-5.19 Package: linux-azure-fde-6.14 Package: linux-azure-fde-6.2 Package: linux-azure-fde-6.8 Package: linux-azure-fips Package: linux-azure-nvidia Package: linux-azure-nvidia-6.14 Package: linux-bluefield Package: linux-fips Package: linux-gcp Package: linux-gcp-5.11 Package: linux-gcp-5.13 Package: linux-gcp-5.19 Package: linux-gcp-5.3 Package: linux-gcp-5.8 Package: linux-gcp-6.11 Package: linux-gcp-6.14 Package: linux-gcp-6.17 Package: linux-gcp-6.2 Package: linux-gcp-6.5 Package: linux-gcp-6.8 Package: linux-gcp-fips Package: linux-gke Package: linux-gke-4.15 Package: linux-gke-5.15 Package: linux-gke-5.4 Package: linux-gkeop Package: linux-gkeop-5.15 Package: linux-gkeop-5.4 Package: linux-hwe Package: linux-hwe-5.11 Package: linux-hwe-5.13 Package: linux-hwe-5.19 Package: linux-hwe-5.8 Package: linux-hwe-6.11 Package: linux-hwe-6.14 Package: linux-hwe-6.2 Package: linux-hwe-6.5 Package: linux-hwe-6.8 Package: linux-hwe-edge Package: linux-ibm Package: linux-ibm-6.8 Package: linux-intel-5.13 Package: linux-intel-iot-realtime Package: linux-lowlatency Package: linux-lowlatency-hwe-5.19 Package: linux-lowlatency-hwe-6.11 Package: linux-lowlatency-hwe-6.2 Package: linux-lowlatency-hwe-6.5 Package: linux-lowlatency-hwe-6.8 Package: linux-nvidia Package: linux-nvidia-6.11 Package: linux-nvidia-6.17 Package: linux-nvidia-6.2 Package: linux-nvidia-6.5 Package: linux-nvidia-6.8 Package: linux-nvidia-lowlatency Package: linux-nvidia-tegra Package: linux-oem Package: linux-oem-5.10 Package: linux-oem-5.13 Package: linux-oem-5.14 Package: linux-oem-5.17 Package: linux-oem-5.6 Package: linux-oem-6.0 Package: linux-oem-6.1 Package: linux-oem-6.11 Package: linux-oem-6.14 Package: linux-oem-6.17 Package: linux-oem-6.5 Package: linux-oem-6.8 Package: linux-oracle Package: linux-oracle-5.0 Package: linux-oracle-5.11 Package: linux-oracle-5.13 Package: linux-oracle-5.3 Package: linux-oracle-5.8 Package: linux-oracle-6.14 Package: linux-oracle-6.17 Package: linux-oracle-6.5 Package: linux-oracle-6.8 Package: linux-raspi Package: linux-raspi-realtime Package: linux-raspi2 Package: linux-realtime Package: linux-realtime-6.14 Package: linux-realtime-6.17 Package: linux-realtime-6.8 Package: linux-riscv Package: linux-riscv-5.11 Package: linux-riscv-5.19 Package: linux-riscv-5.8 Package: linux-riscv-6.14 Package: linux-riscv-6.5 Package: linux-riscv-6.8 Package: linux-starfive-5.19 Package: linux-starfive-6.2 Package: linux-starfive-6.5 Package: linux-vmware Package: linux-xilinx Platform: Linux Ecosystem: Debian Ecosystem: Ubuntu

Description

In the Linux kernel, the following vulnerability has been resolved:

xsk: Harden userspace-supplied xdp_desc validation

Turned out certain clearly invalid values passed in xdp_desc from
userspace can pass xp_{,un}aligned_validate_desc() and then lead
to UBs or just invalid frames to be queued for xmit.

desc->len close to ``U32_MAX`` with a non-zero pool->tx_metadata_len
can cause positive integer overflow and wraparound, the same way low
enough desc->addr with a non-zero pool->tx_metadata_len can cause
negative integer overflow. Both scenarios can then pass the
validation successfully.
This doesn't happen with valid XSk applications, but can be used
to perform attacks.

Always promote desc->len to ``u64`` first to exclude positive
overflows of it. Use explicit check_{add,sub}_overflow() when
validating desc->addr (which is ``u64`` already).

bloat-o-meter reports a little growth of the code size:

add/remove: 0/0 grow/shrink: 2/1 up/down: 60/-16 (44)
Function old new delta
xskq_cons_peek_desc 299 330 +31
xsk_tx_peek_release_desc_batch 973 1002 +29
xsk_generic_xmit 3148 3132 -16

but hopefully this doesn't hurt the performance much.

Affected products

VendorProductAffectedFixed
Linux Linux 6.8 6.12.54

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 linux 6.17.6-1 —
Debian 13 linux 6.12.57-1 —
ReleasePackageFixed inAdvisory
Ubuntu Nvidia-BlueField 24.04 LTS linux-bluefield 6.8.0-1017.21 —
Ubuntu 25.10 linux 6.17.0-14.14 USN-8029-1
Ubuntu 25.10 linux-aws +2 6.17.0-1007.7 USN-8030-1, USN-8029-2
Ubuntu 25.10 linux-azure +1 6.17.0-1008.8 USN-8029-3, USN-8029-1
Ubuntu 25.10 linux-azure-fde No fix yet —
Ubuntu 25.10 linux-realtime 6.17.0-1006.7 USN-8029-1
Ubuntu 25.10 linux-riscv 6.17.0-14.14.1 —
Ubuntu 24.04 LTS linux 6.8.0-106.106 USN-8095-1
Ubuntu 24.04 LTS linux-aws 6.8.0-1050.53 USN-8095-1
Ubuntu 24.04 LTS linux-aws-6.17 +1 6.17.0-1007.7~24.04.1 —
Ubuntu 24.04 LTS linux-azure 6.8.0-1051.57 USN-8125-1
Ubuntu 24.04 LTS linux-azure-fde 6.8.0-1058.65 —
Ubuntu 24.04 LTS linux-azure-nvidia 6.8.0-1039.42 —
Ubuntu 24.04 LTS linux-gcp 6.8.0-1052.55 USN-8095-1
Ubuntu 24.04 LTS linux-gcp-6.17 6.17.0-1008.8~24.04.1 —
Ubuntu 24.04 LTS linux-gke 6.8.0-1048.53 USN-8095-1
Ubuntu 24.04 LTS linux-gkeop 6.8.0-1035.38 USN-8095-1
Ubuntu 24.04 LTS linux-ibm 6.8.0-1049.49 USN-8095-1
Ubuntu 24.04 LTS linux-lowlatency 6.8.0-106.106.1 USN-8095-1
Ubuntu 24.04 LTS linux-nvidia 6.8.0-1049.52 USN-8100-1
Ubuntu 24.04 LTS linux-nvidia-6.17 6.17.0-1008.8 —
Ubuntu 24.04 LTS linux-nvidia-lowlatency 6.8.0-1049.52.1 USN-8100-1
Ubuntu 24.04 LTS linux-nvidia-tegra 6.8.0-1020.20 —
Ubuntu 24.04 LTS linux-oem-6.17 6.17.0-1011.11 USN-8048-1
Ubuntu 24.04 LTS linux-oracle 6.8.0-1047.48 USN-8095-1
Ubuntu 24.04 LTS linux-raspi 6.8.0-1050.54 USN-8095-5
Ubuntu 24.04 LTS linux-riscv +18 No fix yet —
Ubuntu 24.04 LTS linux-xilinx 6.8.0-1028.29 USN-8261-1
Ubuntu 22.04 LTS linux-aws-6.8 6.8.0-1050.53~22.04.1 USN-8095-4
Ubuntu 22.04 LTS linux-azure-6.8 6.8.0-1051.57~22.04.1 USN-8126-1
Ubuntu 22.04 LTS linux-azure-fde-6.8 6.8.0-1058.65~22.04.1 —
Ubuntu 22.04 LTS linux-gcp-6.8 6.8.0-1052.55~22.04.1 USN-8095-1
Ubuntu 22.04 LTS linux-hwe-6.8 +1 6.8.0-106.106~22.04.1 USN-8095-1
Ubuntu 22.04 LTS linux-ibm-6.8 6.8.0-1049.49~22.04.1 USN-8095-1
Ubuntu 22.04 LTS linux-lowlatency-hwe-6.8 6.8.0-106.106.1~22.04.1 USN-8095-1
Ubuntu 22.04 LTS linux-nvidia-6.8 6.8.0-1049.52~22.04.1 USN-8100-1
Ubuntu 22.04 LTS linux-oracle-6.8 6.8.0-1047.48~22.04.1 USN-8095-1
Ubuntu 22.04 LTS linux-riscv +32 No fix yet —
Ubuntu 20.04 LTS linux-gke +28 No fix yet —
Show 5 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS linux-gcp +14 No fix yet —
Ubuntu 16.04 LTS linux-hwe-edge No fix yet —
Ubuntu Pro Realtime 24.04 LTS linux-raspi-realtime 6.8.0-2040.41 USN-8095-5
Ubuntu Pro Realtime 24.04 LTS linux-realtime 6.8.1-1045.46 USN-8095-3
Ubuntu Pro Realtime 24.04 LTS linux-realtime-6.14 No fix yet —
Ubuntu Pro Realtime 24.04 LTS linux-realtime-6.17 6.17.0-1006.7~24.04.1 —
Ubuntu Pro Realtime 22.04 LTS linux-realtime-6.8 6.8.1-1045.46~22.04.1 USN-8095-3
Ubuntu Pro FIPS-updates 24.04 LTS linux-aws-fips 6.8.0-1050.53+fips1 USN-8095-2
Ubuntu Pro FIPS-updates 24.04 LTS linux-azure-fips 6.8.0-1052.58+fips1 USN-8165-1
Ubuntu Pro FIPS-updates 24.04 LTS linux-fips 6.8.0-106.106+fips1 USN-8095-2
Ubuntu Pro FIPS-updates 24.04 LTS linux-gcp-fips 6.8.0-1052.55+fips1 USN-8095-2
ReleasePackageFixed inAdvisory
SLES 15 SP7 kernel-64kb +5 6.4.0-150700.53.25.1 SUSE-SU-2025:4393-1
SLES 15 SP7 kernel-azure +2 6.4.0-150700.20.21.1 SUSE-SU-2025:4517-1
SLES 15 SP7 kernel-default-base 6.4.0-150700.53.25.1.150700.17.17.1 SUSE-SU-2025:4393-1
SLES 15 SP7 kernel-docs 6.4.0-150700.53.25.2 SUSE-SU-2025:4393-1
SLES 15 SP6 kernel-64kb +3 6.4.0-150600.23.81.3 SUSE-SU-2025:4422-1
SLES 15 SP6 kernel-azure +2 6.4.0-150600.8.58.1 SUSE-SU-2025:4505-1
SLES 15 SP6 kernel-default-base 6.4.0-150600.23.81.3.150600.12.36.3 SUSE-SU-2025:4422-1
SLES 15 SP6 kernel-docs +1 6.4.0-150600.23.81.1 SUSE-SU-2025:4422-1
SLES 15 SP6 kernel-source 6.4.0-150600.23.81.2 SUSE-SU-2025:4422-1
Show 9 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 16.0 kernel-64kb +7 6.12.0-160000.8.1 SUSE-SU-2026:20015-1
SLES for SAP 16.0 kernel-default-base 6.12.0-160000.8.1.160000.2.5 SUSE-SU-2026:20015-1
SLES for SAP 16.0 kernel-livepatch-SLE16_Update_0 9-160000.4.3 SUSE-SU-2026:21217-1
SLES for SAP 16.0 kernel-livepatch-SLE16_Update_1 7-160000.1.1 SUSE-SU-2026:21219-1
SLES for SAP 16.0 kernel-livepatch-SLE16_Update_2 5-160000.1.1 SUSE-SU-2026:21221-1
SLES 16.0 kernel-64kb +7 6.12.0-160000.8.1 SUSE-SU-2026:20021-1, SUSE-SU-2026:20015-1
SLES 16.0 kernel-default-base 6.12.0-160000.8.1.160000.2.5 SUSE-SU-2026:20015-1
SLES 16.0 kernel-livepatch-SLE16_Update_0 9-160000.4.3 SUSE-SU-2026:21217-1
SLES 16.0 kernel-livepatch-SLE16_Update_1 7-160000.1.1 SUSE-SU-2026:21219-1
SLES 16.0 kernel-livepatch-SLE16_Update_2 5-160000.1.1 SUSE-SU-2026:21221-1
SLE Micro 6.2 kernel-default-base 6.12.0-160000.8.1.160000.2.5 SUSE-SU-2026:20012-1
SLE Micro 6.2 kernel-livepatch-SLE16-RT_Update_0 7-160000.3.4 SUSE-SU-2026:21007-1
SLE Micro 6.2 kernel-livepatch-SLE16-RT_Update_1 6-160000.1.1 SUSE-SU-2026:21008-1
SLE Micro 6.2 kernel-livepatch-SLE16-RT_Update_2 4-160000.1.1 SUSE-SU-2026:21009-1
SLE Micro 6.2 kernel-livepatch-SLE16_Update_0 9-160000.4.3 SUSE-SU-2026:21096-1
SLE Micro 6.2 kernel-livepatch-SLE16_Update_1 7-160000.1.1 SUSE-SU-2026:21099-1
SLE Micro 6.2 kernel-livepatch-SLE16_Update_2 5-160000.1.1 SUSE-SU-2026:21102-1
SLE Micro 6.2 kernel-rt +5 6.12.0-160000.8.1 SUSE-SU-2026:20562-1, SUSE-SU-2026:20012-1
SLE Micro 6.1 kernel-default-base 6.4.0-38.1.21.15 SUSE-SU-2026:20496-1
SLE Micro 6.1 kernel-livepatch-MICRO-6-0-RT_Update_10 12-1.1 SUSE-SU-2026:21056-1
SLE Micro 6.1 kernel-livepatch-MICRO-6-0-RT_Update_13 +1 3-1.1 SUSE-SU-2026:21053-1, SUSE-SU-2026:21052-1
SLE Micro 6.1 kernel-livepatch-MICRO-6-0-RT_Update_5 17-1.1 SUSE-SU-2026:21061-1
SLE Micro 6.1 kernel-livepatch-MICRO-6-0-RT_Update_6 15-3.1 SUSE-SU-2026:21060-1
SLE Micro 6.1 kernel-livepatch-MICRO-6-0-RT_Update_7 15-1.3 SUSE-SU-2026:21059-1
SLE Micro 6.1 kernel-livepatch-MICRO-6-0-RT_Update_9 12-1.2 SUSE-SU-2026:21057-1
SLE Micro 6.1 kernel-livepatch-MICRO-6-0_Update_10 +1 8-1.1 SUSE-SU-2026:21055-1, SUSE-SU-2026:21045-1
SLE Micro 6.1 kernel-livepatch-MICRO-6-0_Update_11 +2 7-1.1 SUSE-SU-2026:21054-1, SUSE-SU-2026:21044-1, SUSE-SU-2026:21043-1
SLE Micro 6.1 kernel-livepatch-MICRO-6-0_Update_13 5-1.1 SUSE-SU-2026:21042-1
SLE Micro 6.1 kernel-livepatch-MICRO-6-0_Update_5 18-1.2 SUSE-SU-2026:21050-1
SLE Micro 6.1 kernel-livepatch-MICRO-6-0_Update_6 16-3.1 SUSE-SU-2026:21049-1
SLE Micro 6.1 kernel-livepatch-MICRO-6-0_Update_7 15-1.2 SUSE-SU-2026:21048-1
SLE Micro 6.1 kernel-livepatch-MICRO-6-0_Update_8 +2 14-1.2 SUSE-SU-2026:21058-1, SUSE-SU-2026:21047-1, SUSE-SU-2026:21046-1
SLE Micro 6.1 kernel-rt +1 6.4.0-39.1 SUSE-SU-2026:20059-1
SLE Micro 6.1 kernel-source +2 6.4.0-38.1 SUSE-SU-2026:20496-1
SLE Micro 6.0 kernel-default-base 6.4.0-38.1.21.15 SUSE-SU-2026:20473-1
SLE Micro 6.0 kernel-livepatch-MICRO-6-0-RT_Update_10 12-1.1 SUSE-SU-2026:21086-1
SLE Micro 6.0 kernel-livepatch-MICRO-6-0-RT_Update_13 +1 3-1.1 SUSE-SU-2026:21083-1, SUSE-SU-2026:21082-1
SLE Micro 6.0 kernel-livepatch-MICRO-6-0-RT_Update_5 17-1.1 SUSE-SU-2026:21091-1
SLE Micro 6.0 kernel-livepatch-MICRO-6-0-RT_Update_6 15-3.1 SUSE-SU-2026:21090-1
SLE Micro 6.0 kernel-livepatch-MICRO-6-0-RT_Update_7 15-1.3 SUSE-SU-2026:21089-1
SLE Micro 6.0 kernel-livepatch-MICRO-6-0-RT_Update_9 12-1.2 SUSE-SU-2026:21087-1
SLE Micro 6.0 kernel-livepatch-MICRO-6-0_Update_10 +1 8-1.1 SUSE-SU-2026:21085-1, SUSE-SU-2026:21075-1
SLE Micro 6.0 kernel-livepatch-MICRO-6-0_Update_11 +2 7-1.1 SUSE-SU-2026:21084-1, SUSE-SU-2026:21074-1, SUSE-SU-2026:21073-1
SLE Micro 6.0 kernel-livepatch-MICRO-6-0_Update_13 5-1.1 SUSE-SU-2026:21072-1
SLE Micro 6.0 kernel-livepatch-MICRO-6-0_Update_5 18-1.2 SUSE-SU-2026:21080-1
SLE Micro 6.0 kernel-livepatch-MICRO-6-0_Update_6 16-3.1 SUSE-SU-2026:21079-1
SLE Micro 6.0 kernel-livepatch-MICRO-6-0_Update_7 15-1.2 SUSE-SU-2026:21078-1
SLE Micro 6.0 kernel-livepatch-MICRO-6-0_Update_8 +2 14-1.2 SUSE-SU-2026:21088-1, SUSE-SU-2026:21077-1, SUSE-SU-2026:21076-1
SLE Micro 6.0 kernel-rt +1 6.4.0-39.1 SUSE-SU-2026:20039-1
SLE Micro 6.0 kernel-source +2 6.4.0-38.1 SUSE-SU-2026:20473-1
SLE Live Patching 15 SP7 kernel-default 6.4.0-150700.53.25.1 SUSE-SU-2025:4393-1
SLE Live Patching 15 SP7 kernel-livepatch-SLE15-SP7-RT_Update_1 13-150700.2.1 SUSE-SU-2026:1188-1
SLE Live Patching 15 SP7 kernel-livepatch-SLE15-SP7-RT_Update_6 4-150700.2.1 SUSE-SU-2026:1180-1
SLE Live Patching 15 SP7 kernel-livepatch-SLE15-SP7-RT_Update_7 1-150700.1.3.1 SUSE-SU-2025:4516-1
SLE Live Patching 15 SP7 kernel-livepatch-SLE15-SP7_Update_0 13-150700.3.36.1 SUSE-SU-2026:1283-1
SLE Live Patching 15 SP7 kernel-livepatch-SLE15-SP7_Update_4 8-150700.2.1 SUSE-SU-2026:1244-1
SLE Live Patching 15 SP7 kernel-livepatch-SLE15-SP7_Update_5 +1 5-150700.2.1 SUSE-SU-2026:1278-1, SUSE-SU-2026:1185-1
SLE Live Patching 15 SP7 kernel-livepatch-SLE15-SP7_Update_6 3-150700.2.1 SUSE-SU-2026:1261-1
SLE Live Patching 15 SP7 kernel-livepatch-SLE15-SP7_Update_7 1-150700.15.3.1 SUSE-SU-2025:4393-1
SLE Live Patching 15 SP6 kernel-default 6.4.0-150600.23.81.3 SUSE-SU-2025:4422-1
SLE Live Patching 15 SP6 kernel-livepatch-SLE15-SP6-RT_Update_18 1-150600.1.3.1 SUSE-SU-2025:4521-1
SLE Live Patching 15 SP6 kernel-livepatch-SLE15-SP6_Update_11 +1 14-150600.2.1 SUSE-SU-2026:1239-1, SUSE-SU-2026:1236-1
SLE Live Patching 15 SP6 kernel-livepatch-SLE15-SP6_Update_13 12-150600.2.1 SUSE-SU-2026:1283-1
SLE Live Patching 15 SP6 kernel-livepatch-SLE15-SP6_Update_14 8-150600.2.1 SUSE-SU-2026:1271-1
SLE Live Patching 15 SP6 kernel-livepatch-SLE15-SP6_Update_16 5-150600.2.1 SUSE-SU-2026:1225-1
SLE Live Patching 15 SP6 kernel-livepatch-SLE15-SP6_Update_17 3-150600.2.1 SUSE-SU-2026:1261-1
SLE Live Patching 15 SP6 kernel-livepatch-SLE15-SP6_Update_18 1-150600.13.3.3 SUSE-SU-2025:4422-1
SLE Live Patching 15 SP6 kernel-livepatch-SLE15-SP6_Update_9 16-150600.2.1 SUSE-SU-2026:1259-1
SUSE Real Time Module 15 SP7 kernel-rt +2 6.4.0-150700.7.25.1 SUSE-SU-2025:4516-1
SUSE Real Time Module 15 SP6 kernel-rt +3 6.4.0-150600.10.61.1 SUSE-SU-2025:4521-1
ReleasePackageFixed inAdvisory
openSUSE Leap 16.0 kernel-default-base 6.12.0-160000.8.1.160000.2.5 openSUSE-SU-2025:20172-1
openSUSE Leap 16.0 kernel-rt +10 6.12.0-160000.8.1 openSUSE-SU-2025:20172-1
openSUSE Leap 15.6 dtb-aarch64 +3 6.4.0-150600.23.81.1 SUSE-SU-2025:4422-1
openSUSE Leap 15.6 kernel-64kb +5 6.4.0-150600.23.81.3 SUSE-SU-2025:4422-1
openSUSE Leap 15.6 kernel-azure +2 6.4.0-150600.8.58.1 SUSE-SU-2025:4505-1
openSUSE Leap 15.6 kernel-default-base 6.4.0-150600.23.81.3.150600.12.36.3 SUSE-SU-2025:4422-1
openSUSE Leap 15.6 kernel-rt +3 6.4.0-150600.10.61.1 SUSE-SU-2025:4521-1
openSUSE Leap 15.6 kernel-source 6.4.0-150600.23.81.2 SUSE-SU-2025:4422-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 kernel-livepatch-6.12.55-74.119 1:1.0-0.amzn2023 ALAS2023-2025-1316
Amazon Linux 2023 perf6.12 +14 1:6.12.55-74.119.amzn2023 ALAS2023-2025-1316

Advisories 50

References