Skip to content
OpenAdvisories
Unscored CVE-2025-38591 EUVD-2025-27920GHSA-cgjw-h652-c9q2

bpf: Reject narrower access to pointer ctx fields

Published Aug 19, 2025 · Updated Nov 10, 2026 · Assigned by Linux

Vendor: Linux Product: Linux Package: kernel 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.15 Package: linux-aws-5.19 Package: linux-aws-5.3 Package: linux-aws-5.4 Package: linux-aws-5.8 Package: linux-aws-6.14 Package: linux-aws-6.2 Package: linux-aws-6.5 Package: linux-aws-6.8 Package: linux-aws-fips Package: linux-aws-hwe Package: linux-azure Package: linux-azure-4.15 Package: linux-azure-5.11 Package: linux-azure-5.13 Package: linux-azure-5.15 Package: linux-azure-5.19 Package: linux-azure-5.3 Package: linux-azure-5.4 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-4.15 Package: linux-gcp-5.11 Package: linux-gcp-5.13 Package: linux-gcp-5.15 Package: linux-gcp-5.19 Package: linux-gcp-5.3 Package: linux-gcp-5.4 Package: linux-gcp-5.8 Package: linux-gcp-6.11 Package: linux-gcp-6.14 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.15 Package: linux-hwe-5.19 Package: linux-hwe-5.4 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-5.15 Package: linux-ibm-5.4 Package: linux-ibm-6.8 Package: linux-intel Package: linux-intel-5.13 Package: linux-intel-iot-realtime Package: linux-intel-iotg Package: linux-intel-iotg-5.15 Package: linux-iot Package: linux-kvm Package: linux-lowlatency Package: linux-lowlatency-hwe-5.15 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.2 Package: linux-nvidia-6.5 Package: linux-nvidia-6.8 Package: linux-nvidia-lowlatency Package: linux-nvidia-tegra Package: linux-nvidia-tegra-5.15 Package: linux-nvidia-tegra-igx 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.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.15 Package: linux-oracle-5.3 Package: linux-oracle-5.4 Package: linux-oracle-5.8 Package: linux-oracle-6.14 Package: linux-oracle-6.5 Package: linux-oracle-6.8 Package: linux-raspi Package: linux-raspi-5.4 Package: linux-raspi-realtime Package: linux-raspi2 Package: linux-realtime Package: linux-realtime-6.14 Package: linux-realtime-6.8 Package: linux-riscv Package: linux-riscv-5.11 Package: linux-riscv-5.15 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 Package: linux-xilinx-zynqmp Platform: Linux Ecosystem: Azure Linux Ecosystem: Debian Ecosystem: Ubuntu

Description

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

bpf: Reject narrower access to pointer ctx fields

The following BPF program, simplified from a syzkaller repro, causes a
kernel warning:

r0 = *(u8 *)(r1 + 169);
exit;

With pointer field sk being at offset 168 in __sk_buff. This access is
detected as a narrower read in bpf_skb_is_valid_access because it
doesn't match offsetof(struct __sk_buff, sk). It is therefore allowed
and later proceeds to bpf_convert_ctx_access. Note that for the
"is_narrower_load" case in the convert_ctx_accesses(), the insn->off
is aligned, so the cnt may not be 0 because it matches the
offsetof(struct __sk_buff, sk) in the bpf_convert_ctx_access. However,
the target_size stays 0 and the verifier errors with a kernel warning:

verifier bug: error during ctx access conversion(1)

This patch fixes that to return a proper "invalid bpf_context access
off=X size=Y" error on the load instruction.

The same issue affects multiple other fields in context structures that
allow narrow access. Some other non-affected fields (for sk_msg,
sk_lookup, and sockopt) were also changed to use bpf_ctx_range_ptr for
consistency.

Note this syzkaller crash was reported in the "Closes" link below, which
used to be about a different bug, fixed in
commit fce7bd8e385a ("bpf/verifier: Handle BPF_LOAD_ACQ instructions
in insn_def_regno()"). Because syzbot somehow confused the two bugs,
the new crash and repro didn't get reported to the mailing list.

Affected products

VendorProductAffectedFixed
Linux Linux 4.13 5.10.249

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.16.3-1 —
Debian 13 linux 6.12.69-1 DSA-6126-1
Debian 12 linux 6.1.162-1 DSA-6127-1
Debian 11 linux 5.10.249-1 DLA-4475-1
Debian 11 linux-6.1 6.1.162-1~deb11u1 DLA-4476-1
ReleasePackageFixed inAdvisory
Ubuntu Nvidia-BlueField 24.04 LTS linux-bluefield 6.8.0-1022.26 —
Ubuntu Nvidia-BlueField 22.04 LTS linux-bluefield 5.15.0-1089.91 —
Ubuntu 25.10 linux-azure-fde No fix yet —
Ubuntu 24.04 LTS linux 6.8.0-117.117 USN-8278-1
Ubuntu 24.04 LTS linux-aws 6.8.0-1055.58 USN-8278-1
Ubuntu 24.04 LTS linux-azure 6.8.0-1056.62 USN-8278-2
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-1058.61 USN-8278-1
Ubuntu 24.04 LTS linux-gke 6.8.0-1054.60 USN-8278-1
Ubuntu 24.04 LTS linux-gkeop 6.8.0-1041.44 USN-8278-1
Ubuntu 24.04 LTS linux-ibm 6.8.0-1055.56 USN-8278-1
Ubuntu 24.04 LTS linux-intel +19 No fix yet —
Ubuntu 24.04 LTS linux-lowlatency 6.8.0-117.117.1 USN-8278-1
Ubuntu 24.04 LTS linux-nvidia 6.8.0-1054.57 USN-8289-1
Ubuntu 24.04 LTS linux-nvidia-lowlatency 6.8.0-1054.57.1 USN-8289-1
Ubuntu 24.04 LTS linux-nvidia-tegra 6.8.0-1024.24 USN-8296-2
Ubuntu 24.04 LTS linux-oracle 6.8.0-1054.55 —
Ubuntu 24.04 LTS linux-raspi 6.8.0-1056.60 USN-8278-1
Ubuntu 24.04 LTS linux-xilinx 6.8.0-1032.33 USN-8499-1
Ubuntu 22.04 LTS linux 5.15.0-176.186 USN-8180-1
Ubuntu 22.04 LTS linux-aws 5.15.0-1105.112 USN-8180-1
Ubuntu 22.04 LTS linux-aws-6.8 6.8.0-1057.60~22.04.1 —
Ubuntu 22.04 LTS linux-azure 5.15.0-1110.119 USN-8180-3
Ubuntu 22.04 LTS linux-azure-6.8 6.8.0-1059.65~22.04.1 USN-8440-1
Ubuntu 22.04 LTS linux-azure-fde 5.15.0-1114.123 —
Ubuntu 22.04 LTS linux-azure-fde-6.8 6.8.0-1058.65~22.04.1 —
Ubuntu 22.04 LTS linux-gcp 5.15.0-1105.114 USN-8180-1
Ubuntu 22.04 LTS linux-gcp-6.8 6.8.0-1060.63~22.04.1 —
Ubuntu 22.04 LTS linux-gke 5.15.0-1101.107 USN-8180-1
Ubuntu 22.04 LTS linux-gkeop 5.15.0-1088.96 USN-8180-1
Ubuntu 22.04 LTS linux-hwe-6.8 6.8.0-124.124~22.04.1 —
Ubuntu 22.04 LTS linux-ibm +1 5.15.0-1099.102 USN-8180-6, USN-8180-5
Ubuntu 22.04 LTS linux-ibm-6.8 6.8.0-1055.56~22.04.1 USN-8278-1
Ubuntu 22.04 LTS linux-intel-iotg 5.15.0-1100.106 USN-8180-3
Ubuntu 22.04 LTS linux-kvm 5.15.0-1097.102 USN-8180-3
Ubuntu 22.04 LTS linux-lowlatency 5.15.0-175.185 USN-8180-1
Ubuntu 22.04 LTS linux-lowlatency-hwe-6.8 6.8.0-117.117.1~22.04.1 USN-8278-1
Ubuntu 22.04 LTS linux-nvidia 5.15.0-1100.101 USN-8180-1
Ubuntu 22.04 LTS linux-nvidia-6.8 6.8.0-1054.57~22.04.1 USN-8289-2
Ubuntu 22.04 LTS linux-nvidia-tegra 5.15.0-1057.57 USN-8187-1
Ubuntu 22.04 LTS linux-nvidia-tegra-igx 5.15.0-1046.46 USN-8187-1
Ubuntu 22.04 LTS linux-oracle 5.15.0-1102.108 USN-8180-1
Ubuntu 22.04 LTS linux-oracle-6.8 6.8.0-1054.55~22.04.1 —
Ubuntu 22.04 LTS linux-riscv +32 No fix yet —
Ubuntu 22.04 LTS linux-riscv-6.8 6.8.0-117.117~22.04.1 —
Ubuntu 22.04 LTS linux-xilinx-zynqmp 5.15.0-1070.74 USN-8275-1
Show 16 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS linux-gke +28 No fix yet —
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-2045.46 USN-8278-1
Ubuntu Pro Realtime 24.04 LTS linux-realtime 6.8.1-1051.52 USN-8278-1
Ubuntu Pro Realtime 24.04 LTS linux-realtime-6.14 No fix yet —
Ubuntu Pro Realtime 22.04 LTS linux-intel-iot-realtime 5.15.0-1097.99 USN-8186-1
Ubuntu Pro Realtime 22.04 LTS linux-realtime 5.15.0-1104.113 USN-8186-1
Ubuntu Pro Realtime 22.04 LTS linux-realtime-6.8 6.8.1-1051.52~22.04.1 USN-8278-1
Ubuntu Pro FIPS 20.04 LTS linux-fips +3 No fix yet —
Ubuntu Pro FIPS 18.04 LTS linux-fips +3 No fix yet —
Ubuntu Pro FIPS-updates 24.04 LTS linux-aws-fips 6.8.0-1055.58+fips1 USN-8278-1
Ubuntu Pro FIPS-updates 24.04 LTS linux-azure-fips 6.8.0-1059.65+fips1 USN-8393-1
Ubuntu Pro FIPS-updates 24.04 LTS linux-fips 6.8.0-116.116+fips1 USN-8296-1
Ubuntu Pro FIPS-updates 24.04 LTS linux-gcp-fips 6.8.0-1058.61+fips1 USN-8278-1
Ubuntu Pro FIPS-updates 22.04 LTS linux-aws-fips 5.15.0-1105.112+fips1 —
Ubuntu Pro FIPS-updates 22.04 LTS linux-azure-fips 5.15.0-1110.119+fips1 USN-8180-4
Ubuntu Pro FIPS-updates 22.04 LTS linux-fips 5.15.0-176.186+fips1 USN-8180-2
Ubuntu Pro FIPS-updates 22.04 LTS linux-gcp-fips 5.15.0-1105.114+fips1 USN-8180-2
Ubuntu Pro FIPS-updates 20.04 LTS linux-fips +3 No fix yet —
Ubuntu Pro FIPS-updates 18.04 LTS linux-fips +3 No fix yet —
Ubuntu Pro FIPS-preview 22.04 LTS linux-fips +3 No fix yet —
Ubuntu Pro 20.04 LTS linux +10 No fix yet —
Ubuntu Pro 20.04 LTS linux-aws-5.15 5.15.0-1105.112~20.04.1 USN-8180-1
Ubuntu Pro 20.04 LTS linux-azure-5.15 5.15.0-1110.119~20.04.1 USN-8243-1
Ubuntu Pro 20.04 LTS linux-gcp-5.15 5.15.0-1106.115~20.04.1 USN-8297-1
Ubuntu Pro 20.04 LTS linux-hwe-5.15 5.15.0-176.186~20.04.1 USN-8188-1
Ubuntu Pro 20.04 LTS linux-ibm-5.15 5.15.0-1099.102~20.04.1 USN-8180-5
Ubuntu Pro 20.04 LTS linux-intel-iotg-5.15 5.15.0-1100.106~20.04.1 USN-8180-3
Ubuntu Pro 20.04 LTS linux-lowlatency-hwe-5.15 5.15.0-175.185~20.04.1 USN-8180-1
Ubuntu Pro 20.04 LTS linux-nvidia-tegra-5.15 5.15.0-1057.57~20.04.1 USN-8162-1
Ubuntu Pro 20.04 LTS linux-oracle-5.15 5.15.0-1102.108~20.04.1 USN-8180-3
Ubuntu Pro 20.04 LTS linux-riscv-5.15 5.15.0-1099.103~20.04.1 —
Ubuntu Pro 18.04 LTS linux +12 No fix yet —
Ubuntu Pro 16.04 LTS linux-gcp +4 No fix yet —
Ubuntu Pro 14.04 LTS linux-azure No fix yet —
ReleasePackageFixed inAdvisory
SLES 15 SP7 kernel-64kb +6 6.4.0-150700.53.16.1 SUSE-SU-2025:03290-1
SLES 15 SP7 kernel-azure +1 6.4.0-150700.20.15.2 SUSE-SU-2025:03633-1
SLES 15 SP7 kernel-default-base 6.4.0-150700.53.16.1.150700.17.11.2 SUSE-SU-2025:03290-1
SLES 15 SP7 kernel-syms-azure 6.4.0-150700.20.15.1 SUSE-SU-2025:03633-1
SLES 15 SP6 kernel-64kb +6 6.4.0-150600.23.70.1 SUSE-SU-2025:03301-1
SLES 15 SP6 kernel-azure +2 6.4.0-150600.8.52.1 SUSE-SU-2025:03634-1
SLES 15 SP6 kernel-coco +3 6.4.0-15061.32.coco15sp6.1 SUSE-SU-2025:03602-1
SLES 15 SP6 kernel-default-base 6.4.0-150600.23.70.1.150600.12.30.2 SUSE-SU-2025:03301-1
SLES 12 SP5 kernel-syms +2 4.12.14-122.293.1 SUSE-SU-2026:0473-1
Show 10 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 16.0 kernel-64kb +7 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SLES for SAP 16.0 kernel-default-base 6.12.0-160000.6.1.160000.2.4 SUSE-SU-2025:21139-1
SLES 16.0 kernel-64kb +7 6.12.0-160000.6.1 SUSE-SU-2025:21179-1, SUSE-SU-2025:21139-1
SLES 16.0 kernel-default-base 6.12.0-160000.6.1.160000.2.4 SUSE-SU-2025:21139-1
SLE Micro 6.2 kernel-default-base 6.12.0-160000.6.1.160000.2.4 SUSE-SU-2025:21074-1
SLE Micro 6.2 kernel-rt +5 6.12.0-160000.6.1 SUSE-SU-2026:20560-1, SUSE-SU-2025:21074-1
SLE Micro 6.1 kernel-default-base 6.4.0-34.1.21.11 SUSE-SU-2025:20669-1
SLE Micro 6.1 kernel-rt +1 6.4.0-36.1 SUSE-SU-2025:20756-1
SLE Micro 6.1 kernel-source +2 6.4.0-34.1 SUSE-SU-2025:20669-1
SLE Micro 6.0 kernel-default-base 6.4.0-34.1.21.11 SUSE-SU-2025:20653-1
SLE Micro 6.0 kernel-rt +1 6.4.0-36.1 SUSE-SU-2025:20739-1
SLE Micro 6.0 kernel-source +2 6.4.0-34.1 SUSE-SU-2025:20653-1
SLE Live Patching 15 SP7 kernel-default 6.4.0-150700.53.16.1 SUSE-SU-2025:03290-1
SLE Live Patching 15 SP7 kernel-livepatch-SLE15-SP7-RT_Update_4 1-150700.1.3.2 SUSE-SU-2025:03382-1
SLE Live Patching 15 SP7 kernel-livepatch-SLE15-SP7_Update_4 1-150700.15.3.2 SUSE-SU-2025:03290-1
SLE Live Patching 15 SP6 kernel-default 6.4.0-150600.23.70.1 SUSE-SU-2025:03301-1
SLE Live Patching 15 SP6 kernel-livepatch-SLE15-SP6-RT_Update_15 1-150600.1.3.1 SUSE-SU-2025:03272-1
SLE Live Patching 15 SP6 kernel-livepatch-SLE15-SP6_Update_15 1-150600.13.3.2 SUSE-SU-2025:03301-1
SLE Live Patching 12 SP5 kernel-default 4.12.14-122.293.1 SUSE-SU-2026:0473-1
SLE Live Patching 12 SP5 kgraft-patch-SLE12-SP5_Update_77 1-8.3.1 SUSE-SU-2026:0473-1
SUSE Real Time Module 15 SP7 kernel-rt +2 6.4.0-150700.7.16.1 SUSE-SU-2025:03382-1
SUSE Real Time Module 15 SP6 kernel-rt +3 6.4.0-150600.10.52.1 SUSE-SU-2025:03272-1
ReleasePackageFixed inAdvisory
openSUSE Leap 16.0 kernel-default-base 6.12.0-160000.6.1.160000.2.4 openSUSE-SU-2025:20081-1
openSUSE Leap 16.0 kernel-rt +10 6.12.0-160000.6.1 openSUSE-SU-2025:20081-1
openSUSE Leap 15.6 dtb-aarch64 +10 6.4.0-150600.23.70.1 SUSE-SU-2025:03301-1
openSUSE Leap 15.6 kernel-azure +2 6.4.0-150600.8.52.1 SUSE-SU-2025:03634-1
openSUSE Leap 15.6 kernel-default-base 6.4.0-150600.23.70.1.150600.12.30.2 SUSE-SU-2025:03301-1
openSUSE Leap 15.6 kernel-rt +3 6.4.0-150600.10.52.1 SUSE-SU-2025:03272-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 kernel-livepatch-6.12.68-92.122 +1 1:1.0-0.amzn2023 ALAS2023-2026-1468, ALAS2023-2026-1455
Amazon Linux 2023 perf +14 1:6.1.163-186.299.amzn2023 ALAS2023-2026-1468
Amazon Linux 2023 perf6.12 +14 1:6.12.68-92.122.amzn2023 ALAS2023-2026-1455

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 kernel No fix yet —
Azure Linux 2 (CBL-Mariner) kernel No fix yet —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 9 kernel-uek +34 6.12.0-109.67.6.el10uek ELSA-2026-50144
Oracle Linux 8 bpftool +18 5.15.0-318.199.3.2.el9uek ELSA-2026-50145

Advisories 50

References