CVE-2021-4202 json
A use-after-free flaw was found in nci_request in net/nfc/nci/core.c in NFC Controller Interface (NCI) in the Linux kernel.
published 2022-03-25 4 y ago modified 2026-06-17 4 mo ago also EUVD-2021-34060
- cvss
- 7.0
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 30%
- public exploits
- 0
- none known
Summary
A use-after-free flaw was found in nci_request in net/nfc/nci/core.c in NFC Controller Interface (NCI) in the Linux kernel. This flaw could allow a local attacker with user privileges to cause a data race problem while the device is getting removed, leading to a privilege escalation problem.
Patch / fix
- linux linux_kernel 4.4.294, 4.9.292, 4.14.257, 4.19.219, 5.4.163, 5.10.82, 5.15.5
- linux Debian 14, Debian 13, Debian 12 5.15.5-1
debian advisories DEBIAN-CVE-2021-4202
- linux Ubuntu 18.04 LTS 4.15.0-169.177
- linux Ubuntu 20.04 LTS 5.4.0-100.113
- linux-aws Ubuntu 18.04 LTS 4.15.0-1121.129
- linux-aws Ubuntu 20.04 LTS 5.4.0-1066.69
- linux-gcp Ubuntu 20.04 LTS 5.4.0-1065.69
- linux-gke Ubuntu 20.04 LTS 5.4.0-1063.66
- linux-ibm Ubuntu 20.04 LTS 5.4.0-1015.16
- linux-kvm Ubuntu 18.04 LTS 4.15.0-1107.109
ubuntu advisories UBUNTU-CVE-2021-4202
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- kernel-rt SLE Real Time 12 SP5 4.12.14-10.78.1
- kernel-syms-rt SLE Real Time 12 SP5 4.12.14-10.78.1
- kernel-rt_debug SLE Real Time 12 SP5 4.12.14-10.78.1
- kernel-source-rt SLE Real Time 12 SP5 4.12.14-10.78.1
- kernel-syms SLES 12 SP2-BCL 4.4.121-92.164.1
- kernel-source SLES 12 SP2-BCL 4.4.121-92.164.1
- kernel-default SLES 12 SP2-BCL 4.4.121-92.164.1
- kernel-azure SLES for SAP 12 SP5, SLES 12 SP5 4.12.14-16.88.1
suse advisories SUSE-SU-2022:0555-1SUSE-SU-2022:0552-1SUSE-SU-2022:0477-1SUSE-SU-2022:0463-1SUSE-SU-2022:0418-1SUSE-SU-2022:0372-1
- kernel-default openSUSE Leap 15.3 4.12.14-197.105.1
- kernel-vanilla openSUSE Leap 15.3 4.12.14-197.105.1
- kernel-kvmsmall openSUSE Leap 15.3 4.12.14-197.105.1
- kernel-zfcpdump openSUSE Leap 15.3 4.12.14-197.105.1
- dtb-aarch64 openSUSE Leap 15.3 5.3.18-150300.59.43.1
- kernel-64kb openSUSE Leap 15.3 5.3.18-150300.59.43.1
- kernel-syms openSUSE Leap 15.3 5.3.18-150300.59.43.1
- kernel-obs-qa openSUSE Leap 15.3 5.3.18-150300.59.43.1
opensuse advisories openSUSE-SU-2022:0366-1openSUSE-SU-2022:0198-1openSUSE-SU-2022:0169-1
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2021-4202 updated cvss 7.0
kernel: Race condition in nci_request() leads to use after free while the device is getting removed
-
Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +82 moreaffected: workaround, no fix planned “Will not fix”
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 more Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
0.36% chance of exploitation in the next 30 days, higher than 30% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- git.kernel.org https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=3e3b5dfcd16a3e254aab61bd1e8c417dd4503102 referenced PoC, tagged "exploit" by a source, unverified
- git.kernel.org https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=48b71a9e66c2eab60564b1b1c85f4928ed04e406 referenced PoC, tagged "exploit" by a source, unverified
- git.kernel.org https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=86cdf8e38792545161dbe3350a7eced558ba4d15 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 7.0 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 6.9 | AV:L/AC:M/Au:N/C:C/I:C/A:C |
Affected products
- n/a kernel
Classification
- Weakness
- Technology feeds
References
-
git.kernel.org
/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=3e3b5dfcd16a3e254aab61bd1e8c417dd4503102
exploit, patch, vendor-advisory
-
git.kernel.org
/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=48b71a9e66c2eab60564b1b1c85f4928ed04e406
exploit, patch, vendor-advisory
-
git.kernel.org
/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=86cdf8e38792545161dbe3350a7eced558ba4d15
exploit, patch, vendor-advisory
-
bugzilla.redhat.com
/show_bug.cgi?id=2036682
issue-tracking, patch, third-party-advisory
-
security.netapp.com
/advisory/ntap-20220513-0002/
third-party-advisory
-
openwall.com
/lists/oss-security/2022/06/01/2
mailing-list, third-party-advisory
-
openwall.com
/lists/oss-security/2022/06/04/2
mailing-list, third-party-advisory
-
openwall.com
/lists/oss-security/2022/06/07/2
mailing-list, third-party-advisory
Sources
- CVE List CVE-2021-4202
- NVD CVE-2021-4202
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.