cve.bz

CVE-2021-4135 linux linux kernel

5.5 mediumEPSS 0.2%Fix available

Medium (5.5) in linux linux kernel. EPSS 0.2% estimated probability of exploitation activity in the next 30 days.

On this page
A memory leak vulnerability was found in the Linux kernel's eBPF for the Simulated networking device driver in the way user uses BPF for the device such that function nsim_map_alloc_elem being called. A local user could use this flaw to get unauthorized access to some data.

Severity

CVSS 3.1

5.5 medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 16th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-10-08. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-401 Missing Release of Memory after Effective Lifetime
CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-4135 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-4135?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-4135?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-4135 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2021-4135

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2021-4135](https://cve.bz/cve/badge/CVE-2021-4135.svg)](https://cve.bz/cve/CVE-2021-4135)

HTML:

<a href="https://cve.bz/cve/CVE-2021-4135"><img src="https://cve.bz/cve/badge/CVE-2021-4135.svg" alt="CVE-2021-4135"></a>

Affected

Versions

From the NVD's CPE matches.

ProductAffected
linux:linux_kernelbefore 5.16
linux:linux_kernel5.16
linux:linux_kernel5.16:rc1
linux:linux_kernel5.16:rc2
linux:linux_kernel5.16:rc3
linux:linux_kernel5.16:rc4
linux:linux_kernel5.16:rc5

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9linux-4.194.19.232-1~deb9u1DLA-2941-1
Debian10linux4.19.232-1DSA-5096-1
Debian12, 13, 14linux5.15.15-1DEBIAN-CVE-2021-4135
Ubuntu16.04:LTSlinux-hwe-edgeno fix listedUBUNTU-CVE-2021-4135
Ubuntu18.04:LTSlinux-aws-5.45.4.0-1069.73~18.04.1UBUNTU-CVE-2021-4135 USN-5338-1
Ubuntu18.04:LTSlinux-azure-5.45.4.0-1073.76~18.04.1UBUNTU-CVE-2021-4135 USN-5338-1
Ubuntu18.04:LTSlinux-gcp, linux-hwe, linux-oem and 10 moreno fix listedUBUNTU-CVE-2021-4135
Ubuntu18.04:LTSlinux-gcp-5.45.4.0-1068.72~18.04.1UBUNTU-CVE-2021-4135 USN-5338-1
Ubuntu18.04:LTSlinux-gke-5.45.4.0-1066.69~18.04.1UBUNTU-CVE-2021-4135 USN-5338-1
Ubuntu18.04:LTSlinux-gkeop-5.45.4.0-1037.38~18.04.1UBUNTU-CVE-2021-4135 USN-5338-1
Ubuntu18.04:LTSlinux-hwe-5.45.4.0-105.119~18.04.1UBUNTU-CVE-2021-4135 USN-5338-1
Ubuntu18.04:LTSlinux-ibm-5.45.4.0-1018.20~18.04.1UBUNTU-CVE-2021-4135 USN-5338-1
Ubuntu18.04:LTSlinux-oracle-5.45.4.0-1067.72~18.04.1UBUNTU-CVE-2021-4135 USN-5338-1
Ubuntu18.04:LTSlinux-raspi-5.45.4.0-1056.63~18.04.1UBUNTU-CVE-2021-4135 USN-5338-1
Ubuntu20.04:LTSlinux5.4.0-105.119UBUNTU-CVE-2021-4135 USN-5338-1
25 more for Ubuntu in the JSON and on Ubuntu's page.
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 2 morekernel-docs, kernel-syms, kernel-source and 2 more4.12.14-197.105.1SUSE-SU-2022:0366-1
SUSEEnterprise Storage 7, Linux Enterprise High Performance Computing 15 SP2-ESPOS, Linux Enterprise High Performance Computing 15 SP2-LTSS and 7 morekernel-default-base5.3.18-24.99.1.9.46.1SUSE-SU-2022:0197-1
SUSEEnterprise Storage 7, Linux Enterprise High Performance Computing 15 SP2-ESPOS, Linux Enterprise High Performance Computing 15 SP2-LTSS and 3 morekernel-docs, kernel-syms, kernel-source and 3 more5.3.18-24.99.1SUSE-SU-2022:0197-1
SUSELinux Enterprise High Availability Extension 12 SP5, Linux Enterprise Live Patching 12 SP5, Linux Enterprise Workstation Extension 12 SP5kernel-default4.12.14-122.110.1SUSE-SU-2022:0364-1
SUSELinux Enterprise High Availability Extension 15 SP1, Linux Enterprise Live Patching 15 SP1kernel-default4.12.14-197.105.1SUSE-SU-2022:0366-1
SUSELinux Enterprise High Availability Extension 15 SP2, Linux Enterprise Live Patching 15 SP2, Linux Enterprise Micro 5.0kernel-default5.3.18-24.99.1SUSE-SU-2022:0197-1
SUSELinux Enterprise High Availability Extension 15 SP3, Linux Enterprise Live Patching 15 SP3, Linux Enterprise Micro 5.1 and 1 morekernel-default5.3.18-150300.59.43.1SUSE-SU-2022:0198-1
SUSELinux Enterprise Live Patching 12 SP5kgraft-patch-SLE12-SP5_Update_281-8.3.2SUSE-SU-2022:0364-1
SUSELinux Enterprise Live Patching 15 SP1kernel-livepatch-SLE15-SP1_Update_281-3.3.1SUSE-SU-2022:0366-1
SUSELinux Enterprise Live Patching 15 SP2kernel-livepatch-SLE15-SP2_Update_231-5.3.1SUSE-SU-2022:0197-1
SUSELinux Enterprise Live Patching 15 SP3kernel-livepatch-SLE15-SP3_Update_121-150300.7.3.1SUSE-SU-2022:0198-1
SUSELinux Enterprise Micro 5.0kernel-rt5.3.18-68.1SUSE-SU-2022:0289-1
15 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.3dtb-aarch64, kernel-64kb, kernel-docs and 9 more5.3.18-150300.59.43.1openSUSE-SU-2022:0198-1
openSUSELeap 15.3kernel-azure, kernel-syms-azure, kernel-source-azure5.3.18-150300.38.37.1openSUSE-SU-2022:0169-1
openSUSELeap 15.3kernel-debug, kernel-default, kernel-vanilla and 2 more4.12.14-197.105.1openSUSE-SU-2022:0366-1
openSUSELeap 15.3kernel-default-base5.3.18-150300.59.43.1.150300.18.27.1openSUSE-SU-2022:0198-1
Azure Linux2kernel5.15.67.1-4AZL-10137

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's mitigation

The default Red Hat Enterprise Linux kernel prevents unprivileged users from being able to use eBPF by the kernel.unprivileged_bpf_disabled sysctl. This would require a privileged user with CAP_SYS_ADMIN or root to be able to abuse this flaw reducing its attack space.

For the Red Hat Enterprise Linux 7 the eBPF for unprivileged users is always disabled.

For the Red Hat Enterprise Linux 8 to confirm the current state, inspect the sysctl with the command:

```

# cat /proc/sys/kernel/unprivileged_bpf_disabled

```

The setting of 1 would mean that unprivileged users can not use eBPF, mitigating the flaw.

A kernel update will be required to mitigate the flaw for the root or users with CAP_SYS_ADMIN capabilities.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 6kernelNot affected
Red Hat Enterprise Linux 7kernel-altNot affected
Red Hat Enterprise Linux 7kernelNot affected
Red Hat Enterprise Linux 7kernel-rtNot affected
Red Hat Enterprise Linux 8kernelAffected
Red Hat Enterprise Linux 8kernel-rtAffected
Red Hat Enterprise Linux 9kernelAffected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-4135.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-200 (59).

References

Check your stackJSON