Description
There is a vulnerability in the linux kernel versions higher than 5.2 (if kernel compiled with config params CONFIG_BPF_SYSCALL=y , CONFIG_BPF=y , CONFIG_CGROUPS=y , CONFIG_CGROUP_BPF=y , CONFIG_HARDENED_USERCOPY not set, and BPF hook to getsockopt is registered). As result of BPF execution, the local user can trigger bug in __cgroup_bpf_run_filter_getsockopt() function that can lead to heap overflow (because of non-hardened usercopy). The impact of attack could be deny of service or possibly privileges escalation.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | kernel | kernel 5.2 and higher. | — |
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.19-1 | — |
| Debian 13 | linux | 5.10.19-1 | — |
| Debian 12 | linux | 5.10.19-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 24.04 LTS | linux-raspi-realtime | No fix yet | — |
| Ubuntu 22.04 LTS | linux-realtime +1 | No fix yet | — |
| Ubuntu 20.04 LTS | linux | 5.4.0-71.79 | USN-4909-1 |
| Ubuntu 20.04 LTS | linux-aws | 5.4.0-1043.45 | USN-4909-1 |
| Ubuntu 20.04 LTS | linux-azure | 5.4.0-1044.46 | USN-4909-1 |
| Ubuntu 20.04 LTS | linux-gcp | 5.4.0-1041.44 | USN-4909-1 |
| Ubuntu 20.04 LTS | linux-gke | 5.4.0-1041.43 | — |
| Ubuntu 20.04 LTS | linux-gkeop | 5.4.0-1013.14 | USN-4909-1 |
| Ubuntu 20.04 LTS | linux-hwe-5.8 | 5.8.0-45.51~20.04.1 | USN-4879-1 |
| Ubuntu 20.04 LTS | linux-kvm | 5.4.0-1037.38 | USN-4909-1 |
| Ubuntu 20.04 LTS | linux-oem-5.10 | 5.10.0-1017.18 | USN-4884-1 |
| Ubuntu 20.04 LTS | linux-oem-5.6 | 5.6.0-1053.57 | USN-4912-1 |
| Ubuntu 20.04 LTS | linux-oracle | 5.4.0-1042.45 | USN-4909-1 |
| Ubuntu 20.04 LTS | linux-raspi | 5.4.0-1033.36 | USN-4909-1 |
| Ubuntu 20.04 LTS | linux-riscv +1 | No fix yet | — |
| Ubuntu 20.04 LTS | linux-riscv-5.8 | 5.8.0-18.20~20.04.1 | — |
| Ubuntu 18.04 LTS | linux-aws-5.4 | 5.4.0-1043.45~18.04.1 | USN-4909-1 |
| Ubuntu 18.04 LTS | linux-azure-5.4 | 5.4.0-1044.46~18.04.1 | USN-4909-1 |
| Ubuntu 18.04 LTS | linux-gcp +13 | No fix yet | — |
| Ubuntu 18.04 LTS | linux-gcp-5.4 | 5.4.0-1041.44~18.04.1 | USN-4909-1 |
| Ubuntu 18.04 LTS | linux-gke-5.4 | 5.4.0-1040.42~18.04.1 | USN-4909-1 |
| Ubuntu 18.04 LTS | linux-gkeop-5.4 | 5.4.0-1013.14~18.04.1 | USN-4909-1 |
| Ubuntu 18.04 LTS | linux-hwe-5.4 | 5.4.0-71.79~18.04.1 | USN-4909-1 |
| Ubuntu 18.04 LTS | linux-oracle-5.4 | 5.4.0-1042.45~18.04.1 | USN-4909-1 |
| Ubuntu 18.04 LTS | linux-raspi-5.4 | 5.4.0-1033.36~18.04.1 | USN-4909-1 |
| Ubuntu 16.04 LTS | linux-hwe-edge | No fix yet | — |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro FIPS 20.04 LTS | linux-aws-fips +2 | 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-gcp-fips | 5.4.0-1067.71~20.04.1 | — |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 8 | kernel-rt +12 | 4.18.0-348.rt7.130.el8 | RHSA-2021:4140 |
| RHEL 8 | perf +26 | 4.18.0-348.el8 | RHSA-2021:4356 |
AlmaLinux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux 8 | kernel-tools-libs-devel | 4.18.0-348.el8 | ALSA-2021:4356 |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | kernel | 6.6.35.1-4 | — |
| Azure Linux 2 (CBL-Mariner) | kernel | 5.15.26.1-1 | — |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 8 | perf +19 | 4.18.0-348.el8 | ELSA-2021-4356 |
Advisories 8
- ALSA-2021:4356 Moderate: kernel security, bug fix, and enhancement update AlmaLinux Security Advisories · Oct 29, 2026
- RHSA-2021:4356 Red Hat Security Advisory: kernel security, bug fix, and enhancement update Red Hat Security Advisories (RHSA) · Oct 2, 2026
- RHSA-2021:4140 Red Hat Security Advisory: kernel-rt security and bug fix update Red Hat Security Advisories (RHSA) · Aug 14, 2026
- USN-4912-1 linux-oem-5.6 vulnerabilities Ubuntu Security Notices (USN) · Jun 3, 2026
- USN-4909-1 linux, linux-aws, linux-aws-5.4, linux-azure, linux-azure-5.4, linux-gcp, linux-gcp-5.4, linux-gke-5.4, linux-gkeop, linux-gkeop-5.4, linux-hwe-5.4, linux-kvm, linux-oracle, linux-oracle-5.4, linux-raspi, linux-raspi-5.4 vulnerabilities Ubuntu Security Notices (USN) · Jun 3, 2026
- USN-4879-1 linux, linux-aws, linux-azure, linux-gcp, linux-hwe-5.8, linux-kvm, linux-oracle, linux-raspi vulnerabilities Ubuntu Security Notices (USN) · Jun 3, 2026
- USN-4884-1 linux-oem-5.10 vulnerabilities Ubuntu Security Notices (USN) · Jun 3, 2026
- ELSA-2021-4356 Moderate: kernel security, bug fix, and enhancement update (Oracle Linux 8) Oracle Linux Security Advisories (ELSA) · Nov 16, 2021