CVE-2021-47456
can: peak_pci: peak_pci_remove(): fix UAF
Check your servers for CVE-2021-47456
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2021-47456 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
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
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.24%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 15.6% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 22 May 2024):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- total: full control of the component or of its data
Weakness
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from e6d9c80b7ca1504411ad6d7acdb8683e4ae1c9cd, before 1c616528ba4aeb1125a06b407572ab7b56acae38 affected from e6d9c80b7ca1504411ad6d7acdb8683e4ae1c9cd, before 447d44cd2f67a20b596ede3ca3cd67086dfd9ca9 affected from e6d9c80b7ca1504411ad6d7acdb8683e4ae1c9cd, before 34914971bb3244db4ce2be44e9438a9b30c56250 affected from e6d9c80b7ca1504411ad6d7acdb8683e4ae1c9cd, before adbda14730aacce41c0d3596415aa39ad63eafd9 affected from e6d9c80b7ca1504411ad6d7acdb8683e4ae1c9cd, before 1248582e47a9f7ce0ecd156c39fc61f8b6aa3699 affected from e6d9c80b7ca1504411ad6d7acdb8683e4ae1c9cd, before 28f28e4bc3a5e0051faa963f10b778ab38c1db69 affected from e6d9c80b7ca1504411ad6d7acdb8683e4ae1c9cd, before 0e5afdc2315b0737edcf55bede4ee1640d2d464d affected from e6d9c80b7ca1504411ad6d7acdb8683e4ae1c9cd, before 949fe9b35570361bc6ee2652f89a0561b26eec98
Other versions: unaffected
|
| Linux |
affected 3.4 unaffected before 3.4 unaffected from 4.4.290 up to and including 4.4.* unaffected from 4.9.288 up to and including 4.9.* unaffected from 4.14.253 up to and including 4.14.* unaffected from 4.19.214 up to and including 4.19.* unaffected from 5.4.156 up to and including 5.4.* unaffected from 5.10.76 up to and including 5.10.* unaffected from 5.14.15 up to and including 5.14.* unaffected 5.15 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2021-47456 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2021-47456
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2021-47456
trivy image --scanners vuln IMAGE | grep CVE-2021-47456
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/1c616528ba4aeb1125a06b407572ab7b56acae38 git.kernel.org
- https://git.kernel.org/stable/c/447d44cd2f67a20b596ede3ca3cd67086dfd9ca9 git.kernel.org
- https://git.kernel.org/stable/c/34914971bb3244db4ce2be44e9438a9b30c56250 git.kernel.org
- https://git.kernel.org/stable/c/adbda14730aacce41c0d3596415aa39ad63eafd9 git.kernel.org
- https://git.kernel.org/stable/c/1248582e47a9f7ce0ecd156c39fc61f8b6aa3699 git.kernel.org
- https://git.kernel.org/stable/c/28f28e4bc3a5e0051faa963f10b778ab38c1db69 git.kernel.org
- https://git.kernel.org/stable/c/0e5afdc2315b0737edcf55bede4ee1640d2d464d git.kernel.org
- https://git.kernel.org/stable/c/949fe9b35570361bc6ee2652f89a0561b26eec98 git.kernel.org
Source: the record CVE-2021-47456 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse