CVE-2021-47456 json
can: peak_pci: peak_pci_remove(): fix UAF
published 2024-05-22 2 y ago modified 2026-06-17 4 mo ago also EUVD-2021-34461
- cvss
- 8.4
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 14%
- public exploits
- 0
- none known
Summary
In the Linux kernel, the following vulnerability has been resolved:
can: peak_pci: peak_pci_remove(): fix UAF
When remove the module peek_pci, referencing 'chan' again after releasing 'dev' will cause UAF.
Fix this by releasing 'dev' later.
The following log reveals it:
[ 35.961814 ] BUG: KASAN: use-after-free in peak_pci_remove+0x16f/0x270 [peak_pci] [ 35.963414 ] Read of size 8 at addr ffff888136998ee8 by task modprobe/5537 [ 35.965513 ] Call Trace: [ 35.965718 ] dump_stack_lvl+0xa8/0xd1 [ 35.966028 ] print_address_description+0x87/0x3b0 [ 35.966420 ] kasan_report+0x172/0x1c0 [ 35.966725 ] ? peak_pci_remove+0x16f/0x270 [peak_pci] [ 35.967137 ] ? trace_irq_enable_rcuidle+0x10/0x170 [ 35.967529 ] ? peak_pci_remove+0x16f/0x270 [peak_pci] [ 35.967945 ] __asan_report_load8_noabort+0x14/0x20 [ 35.968346 ] peak_pci_remove+0x16f/0x270 [peak_pci] [ 35.968752 ] pci_device_remove+0xa9/0x250
Patch / fix
- Linux Linux 4.4.290, 4.9.288, 4.14.253, 4.19.214, 5.4.156, 5.10.76, 5.14.15, 5.15
- linux Debian 14, Debian 13, Debian 12 5.14.16-1
debian advisories DEBIAN-CVE-2021-47456
- linux Ubuntu 18.04 LTS 4.15.0-166.174
- linux Ubuntu 20.04 LTS 5.4.0-92.103
- linux-aws Ubuntu 18.04 LTS 4.15.0-1118.125
- linux-aws Ubuntu 20.04 LTS 5.4.0-1061.64
- linux-gcp Ubuntu 20.04 LTS 5.4.0-1059.63
- linux-ibm Ubuntu 20.04 LTS 5.4.0-1010.11
- linux-kvm Ubuntu 18.04 LTS 4.15.0-1105.107
- linux-kvm Ubuntu 20.04 LTS 5.4.0-1051.53
ubuntu advisories UBUNTU-CVE-2021-47456
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 RHEL 8 4.18.0-553.8.1.el8_10
- perf RHEL 8 4.18.0-553.8.1.el8_10
- bpftool RHEL 8 4.18.0-553.8.1.el8_10
- kernel-core RHEL 8 4.18.0-553.8.1.el8_10
- kernel-tools RHEL 8 4.18.0-553.8.1.el8_10
- python3-perf RHEL 8 4.18.0-553.8.1.el8_10
- kernel-modules RHEL 8 4.18.0-553.8.1.el8_10
- kernel-zfcpdump RHEL 8 4.18.0-553.8.1.el8_10
red hat advisories RHSA-2024:4211RHSA-2024:4352
- dtb-aarch64 openSUSE Leap 15.5 5.14.21-150500.55.68.1
- kernel-64kb SLE Module for Basesystem 15 SP5, openSUSE Leap 15.5 5.14.21-150500.55.68.1
- kernel-syms SLE Module for Development Tools 15 SP5, openSUSE Leap 15.5 5.14.21-150500.55.68.1
- kernel-obs-qa openSUSE Leap 15.5 5.14.21-150500.55.68.1
- kernel-source SLE Module for Development Tools 15 SP5, SLE Module for Basesystem 15 SP5, openSUSE Leap 15.5 5.14.21-150500.55.68.1
- kernel-default SLE Workstation Extension 15 SP5, SLE Module for Legacy 15 SP5, SLE Module for Basesystem 15 SP5 +4 more 5.14.21-150500.55.68.1
- kernel-kvmsmall openSUSE Leap 15.5 5.14.21-150500.55.68.1
- kernel-zfcpdump SLE Module for Basesystem 15 SP5, openSUSE Leap 15.5 5.14.21-150500.55.68.1
suse advisories SUSE-SU-2024:2190-1SUSE-SU-2024:2189-1SUSE-SU-2024:2185-1SUSE-SU-2024:2184-1SUSE-SU-2024:2183-1SUSE-SU-2024:2019-1
- kernel-rt AlmaLinux 8 4.18.0-553.8.1.rt7.349.el8_10
- kernel-rt-kvm AlmaLinux 8 4.18.0-553.8.1.rt7.349.el8_10
- kernel-rt-core AlmaLinux 8 4.18.0-553.8.1.rt7.349.el8_10
- kernel-rt-modules AlmaLinux 8 4.18.0-553.8.1.rt7.349.el8_10
- kernel-rt-debug-kvm AlmaLinux 8 4.18.0-553.8.1.rt7.349.el8_10
- kernel-rt-debug-core AlmaLinux 8 4.18.0-553.8.1.rt7.349.el8_10
- kernel-rt-debug-modules AlmaLinux 8 4.18.0-553.8.1.rt7.349.el8_10
- kernel-rt-modules-extra AlmaLinux 8 4.18.0-553.8.1.rt7.349.el8_10
almalinux advisories ALSA-2024:4352ALSA-2024:4211
- kernel-rt Rocky Linux 8 4.18.0-553.8.1.rt7.349.el8_10
- kernel Rocky Linux 8 4.18.0-553.8.1.el8_10
rocky linux advisories RLSA-2024:4352RLSA-2024:4211
- git.kernel.org/stable/c/1c616528ba4aeb1125a06b407572ab7b56acae38 commit
- git.kernel.org/stable/c/447d44cd2f67a20b596ede3ca3cd67086dfd9ca9 commit
- git.kernel.org/stable/c/34914971bb3244db4ce2be44e9438a9b30c56250 commit
- git.kernel.org/stable/c/adbda14730aacce41c0d3596415aa39ad63eafd9 commit
- git.kernel.org/stable/c/1248582e47a9f7ce0ecd156c39fc61f8b6aa3699 commit
- git.kernel.org/stable/c/28f28e4bc3a5e0051faa963f10b778ab38c1db69 commit
- git.kernel.org/stable/c/0e5afdc2315b0737edcf55bede4ee1640d2d464d commit
- git.kernel.org/stable/c/949fe9b35570361bc6ee2652f89a0561b26eec98 commit
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-47456 updated cvss 5.5
kernel: can: peak_pci: peak_pci_remove(): fix UAF
-
Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 moreaffected: no fix planned “Out of support scope”
-
Red Hat Enterprise Linux BaseOS (v. 8) perf 4.18.0-553.8.1.el8_10, kernel 4.18.0-553.8.1.el8_10, bpftool 4.18.0-553.8.1.el8_10, kernel-core 4.18.0-553.8.1.el8_10, kernel-tools 4.18.0-553.8.1.el8_10, python3-perf 4.18.0-553.8.1.el8_10, +15 more Red Hat Enterprise Linux CRB (v. 8) kernel-debuginfo-common-x86_64 4.18.0-553.8.1.el8_10, kernel-debuginfo-common-aarch64 4.18.0-553.8.1.el8_10, kernel-debuginfo-common-ppc64le 4.18.0-553.8.1.el8_10fixed: vendor fix RHSA-2024:4211
-
Red Hat Enterprise Linux NFV (v. 8) kernel-rt 4.18.0-553.8.1.rt7.349.el8_10, kernel-rt-kvm 4.18.0-553.8.1.rt7.349.el8_10, kernel-rt-core 4.18.0-553.8.1.rt7.349.el8_10, kernel-rt-modules 4.18.0-553.8.1.rt7.349.el8_10, kernel-rt-debug-kvm 4.18.0-553.8.1.rt7.349.el8_10, kernel-rt-debug-core 4.18.0-553.8.1.rt7.349.el8_10, +4 more Red Hat Enterprise Linux RT (v. 8) kernel-rt 4.18.0-553.8.1.rt7.349.el8_10, kernel-rt-core 4.18.0-553.8.1.rt7.349.el8_10, kernel-rt-modules 4.18.0-553.8.1.rt7.349.el8_10, kernel-rt-debug-core 4.18.0-553.8.1.rt7.349.el8_10, kernel-rt-debug-modules 4.18.0-553.8.1.rt7.349.el8_10, kernel-rt-modules-extra 4.18.0-553.8.1.rt7.349.el8_10, +2 morefixed: vendor fix RHSA-2024:4352
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +83 more Red Hat Enterprise Linux BaseOS (v. 8) kernel-headers 4.18.0-553.8.1.el8_10, kernel-cross-headers 4.18.0-553.8.1.el8_10not 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
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 2 y ago
Exploit prediction
0.24% chance of exploitation in the next 30 days, higher than 14% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 8.4 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| CNA | 3.1 | 8.4 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected products
- Linux Linux
- linux linux_kernel
Classification
- Weakness
- Technology feeds
References
-
git.kernel.org
/stable/c/1c616528ba4aeb1125a06b407572ab7b56acae38
patch
-
git.kernel.org
/stable/c/447d44cd2f67a20b596ede3ca3cd67086dfd9ca9
patch
-
git.kernel.org
/stable/c/34914971bb3244db4ce2be44e9438a9b30c56250
patch
-
git.kernel.org
/stable/c/adbda14730aacce41c0d3596415aa39ad63eafd9
patch
-
git.kernel.org
/stable/c/1248582e47a9f7ce0ecd156c39fc61f8b6aa3699
patch
-
git.kernel.org
/stable/c/28f28e4bc3a5e0051faa963f10b778ab38c1db69
patch
-
git.kernel.org
/stable/c/0e5afdc2315b0737edcf55bede4ee1640d2d464d
patch
-
git.kernel.org
/stable/c/949fe9b35570361bc6ee2652f89a0561b26eec98
patch
Sources
- CVE List CVE-2021-47456
- NVD CVE-2021-47456
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.