CVE-2021-47456: can: peak_pci: peak_pci_remove(): fix UAF

Published May 22, 2024
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

can: peakpci: peakpciremove(): fix UAF

The Linux kernel CVE team has assigned CVE-2021-47456 to this issue.

Upstream advisory: https://lore.kernel.org/linux-cve-announce/2024052244-CVE-2021-47456-dc47@gregkh/T

Other sources

In the Linux kernel, the following vulnerability has been resolved:

can: peakpci: peakpciremove(): fix UAF

When remove the module peekpci, 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 peakpciremove+0x16f/0x270 [peakpci] [ 35.963414 ] Read of size 8 at addr ffff888136998ee8 by task modprobe/5537 [ 35.965513 ] Call Trace: [ 35.965718 ] dumpstacklvl+0xa8/0xd1 [ 35.966028 ] printaddressdescription+0x87/0x3b0 [ 35.966420 ] kasanreport+0x172/0x1c0 [ 35.966725 ] ? peakpciremove+0x16f/0x270 [peakpci] [ 35.967137 ] ? traceirqenablercuidle+0x10/0x170 [ 35.967529 ] ? peakpciremove+0x16f/0x270 [peakpci] [ 35.967945 ] asanreportload8noabort+0x14/0x20 [ 35.968346 ] peakpciremove+0x16f/0x270 [peakpci] [ 35.968752 ] pcideviceremove+0xa9/0x250

NVD

Affected Software

25 affected componentsFixes available
redhat/kernel<4.4.290
4.4.290
redhat/kernel<4.9.288
4.9.288
redhat/kernel<4.14.253
4.14.253
redhat/kernel<4.19.214
4.19.214
redhat/kernel<5.4.156
5.4.156
redhat/kernel<5.10.76
5.10.76
redhat/kernel<5.14.15
5.14.15
redhat/kernel<5.15
5.15
Linux Linux kernel>=3.4<4.4.290
Linux Linux kernel>=4.5<4.9.288
Linux Linux kernel>=4.10<4.14.253
Linux Linux kernel>=4.15<4.19.214
Linux Linux kernel>=4.20<5.4.156
Linux Linux kernel>=5.5<5.10.76
Linux Linux kernel>=5.11<5.14.15
Linux Linux kernel=5.15-rc1
Linux Linux kernel=5.15-rc2
Linux Linux kernel=5.15-rc3
Linux Linux kernel=5.15-rc4
Linux Linux kernel=5.15-rc5
Linux Linux kernel=5.15-rc6
IBM Security Verify Governance<=ISVG 10.0.2
IBM Security Verify Governance, Identity Manager Software Stack<=ISVG 10.0.2
IBM Security Verify Governance, Identity Manager Virtual Appliance<=ISVG 10.0.2
IBM Security Verify Governance Identity Manager Container<=ISVG 10.0.2

Event History

May 22, 2024
CVE Published
via MITRE·06:19 AM
Data Sourced
via MITRE·06:19 AM
Description
May 23, 2024
Data Sourced
via Red Hat·09:43 AM
DescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2021-47456?

CVE-2021-47456 has been classified as having a medium severity level.

2

How do I fix CVE-2021-47456?

To mitigate CVE-2021-47456, upgrade to the patched kernel versions provided in the advisory.

3

Which versions of the Linux kernel are affected by CVE-2021-47456?

CVE-2021-47456 affects various versions of the Linux kernel prior to 4.4.290, 4.9.288, 4.14.253, 4.19.214, 5.4.156, 5.10.76, 5.14.15, and 5.15.

4

What type of vulnerability is CVE-2021-47456?

CVE-2021-47456 is a use-after-free (UAF) vulnerability in the Linux kernel.

5

Who maintains the security updates for CVE-2021-47456?

The Linux kernel CVE team is responsible for maintaining security updates related to CVE-2021-47456.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203