Description
In the Linux kernel, the following vulnerability has been resolved:
bpf: Fix masking negation logic upon negative dst register
The negation logic for the case where the off_reg is sitting in the
dst register is not correct given then we cannot just invert the add
to a sub or vice versa. As a fix, perform the final bitwise and-op
unconditionally into AX from the off_reg, then move the pointer from
the src to dst and finally use AX as the source for the original
pointer arithmetic operation such that the inversion yields a correct
result. The single non-AX mov in between is possible given constant
blinding is retaining it as it's not an immediate based operation.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Linux | Linux | 4.14.113 – < 4.14.233, 4.19.19 – < 4.19.190, 4.20.6 – < 4.21, 5.0 | 4.14.233 |
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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | linux | 5.10.38-1 | — |
| Debian 13 | linux | 5.10.38-1 | — |
| Debian 12 | linux | 5.10.38-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 24.04 LTS | linux-raspi-realtime | No fix yet | — |
| Ubuntu 22.04 LTS | linux-riscv +22 | No fix yet | — |
| Ubuntu 20.04 LTS | linux | 5.4.0-77.86 | — |
| Ubuntu 20.04 LTS | linux-aws +1 | 5.4.0-1051.53 | — |
| Ubuntu 20.04 LTS | linux-bluefield | 5.4.0-1013.16 | — |
| Ubuntu 20.04 LTS | linux-gcp | 5.4.0-1046.49 | — |
| Ubuntu 20.04 LTS | linux-gke +26 | No fix yet | — |
| Ubuntu 20.04 LTS | linux-gkeop | 5.4.0-1018.19 | — |
| Ubuntu 20.04 LTS | linux-kvm | 5.4.0-1041.42 | — |
| Ubuntu 20.04 LTS | linux-oracle | 5.4.0-1048.52 | — |
| Ubuntu 20.04 LTS | linux-raspi | 5.4.0-1038.41 | — |
| Ubuntu 18.04 LTS | linux | 4.15.0-147.151 | — |
| Ubuntu 18.04 LTS | linux-aws | 4.15.0-1106.113 | — |
| Ubuntu 18.04 LTS | linux-aws-5.4 +1 | 5.4.0-1051.53~18.04.1 | — |
| Ubuntu 18.04 LTS | linux-azure-4.15 | 4.15.0-1118.131 | — |
| Ubuntu 18.04 LTS | linux-gcp +14 | No fix yet | — |
| Ubuntu 18.04 LTS | linux-gcp-4.15 | 4.15.0-1103.116 | — |
| Ubuntu 18.04 LTS | linux-gcp-5.4 | 5.4.0-1046.49~18.04.1 | — |
| Ubuntu 18.04 LTS | linux-hwe-5.4 | 5.4.0-77.86~18.04.1 | — |
| Ubuntu 18.04 LTS | linux-kvm | 4.15.0-1094.96 | — |
| Ubuntu 18.04 LTS | linux-oracle | 4.15.0-1075.83 | — |
| Ubuntu 18.04 LTS | linux-oracle-5.4 | 5.4.0-1048.52~18.04.1 | — |
| Ubuntu 18.04 LTS | linux-raspi-5.4 | 5.4.0-1038.41~18.04.1 | — |
| Ubuntu 16.04 LTS | linux-hwe-edge | No fix yet | — |
Show 6 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 20.04 LTS | linux-aws-fips | 5.4.0-1069.73+fips2 | — |
| Ubuntu Pro FIPS-updates 20.04 LTS | linux-azure-fips | 5.4.0-1073.76+fips1 | — |
| Ubuntu Pro FIPS-updates 20.04 LTS | linux-fips | 5.4.0-1028.32 | — |
| Ubuntu Pro FIPS-updates 20.04 LTS | linux-gcp-fips | 5.4.0-1067.71~20.04.1 | — |
| Ubuntu Pro FIPS-updates 18.04 LTS | linux-aws-fips | 4.15.0-2048.50 | — |
| Ubuntu Pro FIPS-updates 18.04 LTS | linux-azure-fips | 4.15.0-2030.33 | — |
| Ubuntu Pro FIPS-updates 18.04 LTS | linux-fips | 4.15.0-1063.71 | — |
| Ubuntu Pro 16.04 LTS | linux-aws-hwe | 4.15.0-1106.113~16.04.1 | — |
| Ubuntu Pro 16.04 LTS | linux-azure | 4.15.0-1118.131~16.04.1 | — |
| Ubuntu Pro 16.04 LTS | linux-gcp | 4.15.0-1103.116~16.04.1 | — |
| Ubuntu Pro 16.04 LTS | linux-hwe | 4.15.0-147.151~16.04.1 | — |
| Ubuntu Pro 16.04 LTS | linux-oracle | 4.15.0-1075.83~16.04.1 | — |
| Ubuntu Pro 14.04 LTS | linux-azure | 4.15.0-1118.131~14.04.1 | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP3 | kernel-64kb +6 | 5.3.18-150300.59.153.2 | SUSE-SU-2024:0857-1 |
| SLES 15 SP3 | kernel-default-base | 5.3.18-150300.59.153.2.150300.18.90.2 | SUSE-SU-2024:0857-1 |
| SLES 15 SP3 | kernel-syms | 5.3.18-150300.59.153.1 | SUSE-SU-2024:0857-1 |
| SLES 15 SP2 | kernel-default-base | 5.3.18-150200.24.183.1.150200.9.93.2 | SUSE-SU-2024:0926-1 |
| SLES 15 SP2 | kernel-docs +5 | 5.3.18-150200.24.183.1 | SUSE-SU-2024:0926-1 |
| SLES 12 SP5 | kernel-azure +2 | 4.12.14-16.173.1 | SUSE-SU-2024:0975-1 |
| SLES 12 SP5 | kernel-docs +3 | 4.12.14-122.201.1 | SUSE-SU-2024:0925-1 |
| SLES 12 SP5 | kernel-obs-build | 4.12.14-122.201.2 | SUSE-SU-2024:0925-1 |
Show 12 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 15 SP3 | kernel-default-base | 5.3.18-150300.59.153.2.150300.18.90.2 | SUSE-SU-2024:0857-1 |
| SLES for SAP 15 SP3 | kernel-docs +4 | 5.3.18-150300.59.153.2 | SUSE-SU-2024:0857-1 |
| SLES for SAP 15 SP3 | kernel-syms | 5.3.18-150300.59.153.1 | SUSE-SU-2024:0857-1 |
| SLES for SAP 15 SP2 | kernel-default-base | 5.3.18-150200.24.183.1.150200.9.93.2 | SUSE-SU-2024:0926-1 |
| SLES for SAP 15 SP2 | kernel-docs +5 | 5.3.18-150200.24.183.1 | SUSE-SU-2024:0926-1 |
| SLES for SAP 12 SP5 | kernel-azure +2 | 4.12.14-16.173.1 | SUSE-SU-2024:0975-1 |
| SLES for SAP 12 SP5 | kernel-syms +2 | 4.12.14-122.201.1 | SUSE-SU-2024:0925-1 |
| SLE Real Time 12 SP5 | kernel-rt +3 | 4.12.14-10.171.1 | SUSE-SU-2024:0976-1 |
| SLE Micro 5.2 | kernel-default | 5.3.18-150300.59.153.2 | SUSE-SU-2024:0857-1 |
| SLE Micro 5.2 | kernel-default-base | 5.3.18-150300.59.153.2.150300.18.90.2 | SUSE-SU-2024:0857-1 |
| SLE Micro 5.2 | kernel-rt +1 | 5.3.18-150300.161.1 | SUSE-SU-2024:0856-1 |
| SLE Micro 5.1 | kernel-default | 5.3.18-150300.59.153.2 | SUSE-SU-2024:0857-1 |
| SLE Micro 5.1 | kernel-default-base | 5.3.18-150300.59.153.2.150300.18.90.2 | SUSE-SU-2024:0857-1 |
| SLE Micro 5.1 | kernel-rt +1 | 5.3.18-150300.161.1 | SUSE-SU-2024:0856-1 |
| SLE Live Patching 15 SP3 | kernel-default | 5.3.18-150300.59.153.2 | SUSE-SU-2024:0857-1 |
| SLE Live Patching 15 SP3 | kernel-livepatch-SLE15-SP3_Update_42 | 1-150300.7.3.2 | SUSE-SU-2024:0857-1 |
| SLE Live Patching 15 SP2 | kernel-default | 5.3.18-150200.24.183.1 | SUSE-SU-2024:0926-1 |
| SLE Live Patching 15 SP2 | kernel-livepatch-SLE15-SP2_Update_46 | 1-150200.5.3.2 | SUSE-SU-2024:0926-1 |
| SLE Live Patching 12 SP5 | kernel-default | 4.12.14-122.201.1 | SUSE-SU-2024:0925-1 |
| SLE Live Patching 12 SP5 | kgraft-patch-SLE12-SP5_Update_54 | 1-8.7.1 | SUSE-SU-2024:0925-1 |
| SLE HPC 15 SP3 | kernel-64kb +5 | 5.3.18-150300.59.153.2 | SUSE-SU-2024:0857-1 |
| SLE HPC 15 SP3 | kernel-default-base | 5.3.18-150300.59.153.2.150300.18.90.2 | SUSE-SU-2024:0857-1 |
| SLE HPC 15 SP3 | kernel-syms | 5.3.18-150300.59.153.1 | SUSE-SU-2024:0857-1 |
| SLE HPC 15 SP2 | kernel-default-base | 5.3.18-150200.24.183.1.150200.9.93.2 | SUSE-SU-2024:0926-1 |
| SLE HPC 15 SP2 | kernel-docs +5 | 5.3.18-150200.24.183.1 | SUSE-SU-2024:0926-1 |
| SUSE Enterprise Storage 7.1 | kernel-64kb +5 | 5.3.18-150300.59.153.2 | SUSE-SU-2024:0857-1 |
| SUSE Enterprise Storage 7.1 | kernel-default-base | 5.3.18-150300.59.153.2.150300.18.90.2 | SUSE-SU-2024:0857-1 |
| SUSE Enterprise Storage 7.1 | kernel-syms | 5.3.18-150300.59.153.1 | SUSE-SU-2024:0857-1 |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2 | kernel-livepatch-4.14.232-176.381 | 1.0-0.amzn2 | ALAS2-2021-1636 |
| Amazon Linux 2 | perf +8 | 4.14.232-176.381.amzn2 | ALAS2-2021-1636 |
Advisories 8
- SUSE-SU-2024:0926-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:0975-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:0976-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:0925-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:0857-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · May 2, 2025
- SUSE-SU-2024:0856-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · May 2, 2025
- WID-SEC-2024-0500 Linux Kernel: Mehrere Schwachstellen ermöglichen nicht spezifizierten Angriff BSI CERT-Bund (WID) · Mar 4, 2025
- ALAS2-2021-1636 Moderate: kernel security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · May 23, 2024
References
- https://git.kernel.org/stable/c/4d542ddb88fb2f39bf7f14caa2902f3e8d06f6ba
- https://git.kernel.org/stable/c/0e2dfdc74a7f4036127356d42ea59388f153f42c
- https://git.kernel.org/stable/c/53e0db429b37a32b8fc706d0d90eb4583ad13848
- https://git.kernel.org/stable/c/2cfa537674cd1051a3b8111536d77d0558f33d5d
- https://git.kernel.org/stable/c/6eba92a4d4be8feb4dc33976abac544fa99d6ecc
- https://git.kernel.org/stable/c/7cf64d8679ca1cb20cf57d6a88bfee79a0922a66
- https://git.kernel.org/stable/c/b9b34ddbe2076ade359cd5ce7537d5ed019e9807