CVE-2021-47456
Detail
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
Metrics
CVSS Version 4.0
CVSS Version 3.x
CVSS Version 2.0
NVD enrichment efforts reference publicly available information to associate
vector strings. CVSS information contributed by other sources is also
displayed.
CVSS 4.0 Severity and Vector Strings:
NVD assessment
not yet provided.
CVSS 3.x Severity and Vector Strings:
NVD assessment
not yet provided.
Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 2.0 Severity and Vector Strings:
NVD assessment
not yet provided.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving NIST webspace.
We have provided these links to other web sites because they
may have information that would be of interest to you. No
inferences should be drawn on account of other sites being
referenced, or not, from this page. There may be other web
sites that are more appropriate for your purpose. NIST does
not necessarily endorse the views expressed, or concur with
the facts presented on these sites. Further, NIST does not
endorse any commercial products that may be mentioned on
these sites. Please address comments about this page to [email protected] .
Weakness Enumeration
CWE-ID
CWE Name
Source
CWE-416
Use After Free
CISA-ADP
CWE-467
Use of sizeof() on a Pointer Type
CISA-ADP
Change History
7 change records found show changes
CVE Modified by CISA-ADP
6/17/2026 12:17:30 AM
Action
Type
Old Value
New Value
Added
Affected
[{"vendor":"linux","product":"linux_kernel","defaultStatus":"unknown","cpes":["cpe:2.3:o:linux:linux_kernel:-:*:*:*:*:*:*:*"],"versions":[{"version":"e6d9c80b7ca1","status":"affected"}]},{"vendor":"linux","product":"linux_kernel","defaultStatus":"unknown","cpes":["cpe:2.3:o:linux:linux_kernel:-:*:*:*:*:*:*:*"],"versions":[{"version":"3.4","status":"affected"}]},{"vendor":"linux","product":"linux_kernel","defaultStatus":"unknown","cpes":["cpe:2.3:o:linux:linux_kernel:-:*:*:*:*:*:*:*"],"versions":[{"version":"0","status":"unaffected"}]},{"vendor":"linux","product":"linux_kernel","defaultStatus":"unknown","cpes":["cpe:2.3:o:linux:linux_kernel:-:*:*:*:*:*:*:*"],"versions":[{"version":"4.4.290","status":"unaffected"}]},{"vendor":"linux","product":"linux_kernel","defaultStatus":"unknown","cpes":["cpe:2.3:o:linux:linux_kernel:-:*:*:*:*:*:*:*"],"versions":[{"version":"4.9.288","status":"unaffected"}]},{"vendor":"linux","product":"linux_kernel","defaultStatus":"unknown","cpes":["cpe:2.3:o:linux:linux_kernel:-:*:*:*:*:*:*:*"],"versions":[{"version":"4.14.253","status":"unaffected"}]},{"vendor":"linux","product":"linux_kernel","defaultStatus":"unknown","cpes":["cpe:2.3:o:linux:linux_kernel:-:*:*:*:*:*:*:*"],"versions":[{"version":"4.19.214","status":"unaffected"}]},{"vendor":"linux","product":"linux_kernel","defaultStatus":"unknown","cpes":["cpe:2.3:o:linux:linux_kernel:-:*:*:*:*:*:*:*"],"versions":[{"version":"5.4.156","status":"unaffected"}]},{"vendor":"linux","product":"linux_kernel","defaultStatus":"unknown","cpes":["cpe:2.3:o:linux:linux_kernel:-:*:*:*:*:*:*:*"],"versions":[{"version":"5.10.76","status":"unaffected"}]},{"vendor":"linux","product":"linux_kernel","defaultStatus":"unknown","cpes":["cpe:2.3:o:linux:linux_kernel:-:*:*:*:*:*:*:*"],"versions":[{"version":"5.14.15","status":"unaffected"}]},{"vendor":"linux","product":"linux_kernel","defaultStatus":"unknown","cpes":["cpe:2.3:o:linux:linux_kernel:-:*:*:*:*:*:*:*"],"versions":[{"version":"5.15","status":"unaffected"}]}]
Added
SSVC
{"timestamp":"2024-05-22T14:47:53.013850Z","id":"CVE-2021-47456","options":[{"exploitation":"none"},{"automatable":"no"},{"technicalImpact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}
CVE Modified by kernel.org
6/17/2026 12:17:30 AM
Action
Type
Old Value
New Value
Added
Affected
Record truncated, showing 2048 of 2481 characters.
View Entire Change Record
[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","programFiles":["drivers/net/can/sja1000/peak_pci.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"e6d9c80b7ca1504411ad6d7acdb8683e4ae1c9cd","lessThan":"1c616528ba4aeb1125a06b407572ab7b56acae38","versionType":"git","status":"affected"},{"version":"e6d9c80b7ca1504411ad6d7acdb8683e4ae1c9cd","lessThan":"447d44cd2f67a20b596ede3ca3cd67086dfd9ca9","versionType":"git","status":"affected"},{"version":"e6d9c80b7ca1504411ad6d7acdb8683e4ae1c9cd","lessThan":"34914971bb3244db4ce2be44e9438a9b30c56250","versionType":"git","status":"affected"},{"version":"e6d9c80b7ca1504411ad6d7acdb8683e4ae1c9cd","lessThan":"adbda14730aacce41c0d3596415aa39ad63eafd9","versionType":"git","status":"affected"},{"version":"e6d9c80b7ca1504411ad6d7acdb8683e4ae1c9cd","lessThan":"1248582e47a9f7ce0ecd156c39fc61f8b6aa3699","versionType":"git","status":"affected"},{"version":"e6d9c80b7ca1504411ad6d7acdb8683e4ae1c9cd","lessThan":"28f28e4bc3a5e0051faa963f10b778ab38c1db69","versionType":"git","status":"affected"},{"version":"e6d9c80b7ca1504411ad6d7acdb8683e4ae1c9cd","lessThan":"0e5afdc2315b0737edcf55bede4ee1640d2d464d","versionType":"git","status":"affected"},{"version":"e6d9c80b7ca1504411ad6d7acdb8683e4ae1c9cd","lessThan":"949fe9b35570361bc6ee2652f89a0561b26eec98","versionType":"git","status":"affected"}]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","programFiles":["drivers/net/can/sja1000/peak_pci.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"3.4","status":"affected"},{"version":"0","lessThan":"3.4","versionType":"semver","status":"unaffected"},{"version":"4.4.290","lessThanOrEqual":"4.4.*","versionType":"semver","status":"unaffected"},{"version":"4.9.288","lessThanOrEqual":"4.9.*","versionType":"semver","status":"unaffected"},{"version":"4.14.253","lessThanOrEqual":"4.14.*","versionType":"semver","status":"unaffected"},{"version":"4.19.214","lessThanOrEqual":"4.19.*"
Initial Analysis by NIST
4/02/2025 11:11:57 AM
Action
Type
Old Value
New Value
Added
CPE Configuration
OR
*cpe:2.3:o:linux:linux_kernel:5.15:rc2:*:*:*:*:*:*
*cpe:2.3:o:linux:linux_kernel:5.15:rc3:*:*:*:*:*:*
*cpe:2.3:o:linux:linux_kernel:5.15:rc5:*:*:*:*:*:*
*cpe:2.3:o:linux:linux_kernel:5.15:rc1:*:*:*:*:*:*
*cpe:2.3:o:linux:linux_kernel:5.15:rc4:*:*:*:*:*:*
*cpe:2.3:o:linux:linux_kernel:5.15:rc6:*:*:*:*:*:*
*cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 3.4 up to (excluding) 4.4.290
*cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 4.5 up to (excluding) 4.9.288
*cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 4.10 up to (excluding) 4.14.253
*cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 4.15 up to (excluding) 4.19.214
*cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 4.20 up to (excluding) 5.4.156
*cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.5 up to (excluding) 5.10.76
*cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.11 up to (excluding) 5.14.15
Added
Reference Type
CVE: https://git.kernel.org/stable/c/0e5afdc2315b0737edcf55bede4ee1640d2d464d Types: Patch
Added
Reference Type
CVE: https://git.kernel.org/stable/c/1248582e47a9f7ce0ecd156c39fc61f8b6aa3699 Types: Patch
Added
Reference Type
CVE: https://git.kernel.org/stable/c/1c616528ba4aeb1125a06b407572ab7b56acae38 Types: Patch
Added
Reference Type
CVE: https://git.kernel.org/stable/c/28f28e4bc3a5e0051faa963f10b778ab38c1db69 Types: Patch
Added
Reference Type
CVE: https://git.kernel.org/stable/c/34914971bb3244db4ce2be44e9438a9b30c56250 Types: Patch
Added
Reference Type
CVE: https://git.kernel.org/stable/c/447d44cd2f67a20b596ede3ca3cd67086dfd9ca9 Types: Patch
Added
Reference Type
CVE: https://git.kernel.org/stable/c/949fe9b35570361bc6ee2652f89a0561b26eec98 Types: Patch
Added
Reference Type
CVE: https://git.kernel.org/stable/c/adbda14730aacce41c0d3596415aa39ad63eafd9 Types: Patch
Added
Reference Type
kernel.org: https://git.kernel.org/stable/c/0e5afdc2315b0737edcf55bede4ee1640d2d464d Types: Patch
Added
Reference Type
kernel.org: https://git.kernel.org/stable/c/1248582e47a9f7ce0ecd156c39fc61f8b6aa3699 Types: Patch
Added
Reference Type
kernel.org: https://git.kernel.org/stable/c/1c616528ba4aeb1125a06b407572ab7b56acae38 Types: Patch
Added
Reference Type
kernel.org: https://git.kernel.org/stable/c/28f28e4bc3a5e0051faa963f10b778ab38c1db69 Types: Patch
Added
Reference Type
kernel.org: https://git.kernel.org/stable/c/34914971bb3244db4ce2be44e9438a9b30c56250 Types: Patch
Added
Reference Type
kernel.org: https://git.kernel.org/stable/c/447d44cd2f67a20b596ede3ca3cd67086dfd9ca9 Types: Patch
Added
Reference Type
kernel.org: https://git.kernel.org/stable/c/949fe9b35570361bc6ee2652f89a0561b26eec98 Types: Patch
Added
Reference Type
kernel.org: https://git.kernel.org/stable/c/adbda14730aacce41c0d3596415aa39ad63eafd9 Types: Patch
CVE Modified by CVE
11/21/2024 1:36:10 AM
Action
Type
Old Value
New Value
Added
Reference
https://git.kernel.org/stable/c/0e5afdc2315b0737edcf55bede4ee1640d2d464d
Added
Reference
https://git.kernel.org/stable/c/1248582e47a9f7ce0ecd156c39fc61f8b6aa3699
Added
Reference
https://git.kernel.org/stable/c/1c616528ba4aeb1125a06b407572ab7b56acae38
Added
Reference
https://git.kernel.org/stable/c/28f28e4bc3a5e0051faa963f10b778ab38c1db69
Added
Reference
https://git.kernel.org/stable/c/34914971bb3244db4ce2be44e9438a9b30c56250
Added
Reference
https://git.kernel.org/stable/c/447d44cd2f67a20b596ede3ca3cd67086dfd9ca9
Added
Reference
https://git.kernel.org/stable/c/949fe9b35570361bc6ee2652f89a0561b26eec98
Added
Reference
https://git.kernel.org/stable/c/adbda14730aacce41c0d3596415aa39ad63eafd9
CVE Modified by CISA-ADP
7/02/2024 9:37:57 PM
Action
Type
Old Value
New Value
Added
CVSS V3.1
CISA-ADP AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Added
CWE
CISA-ADP CWE-416
Added
CWE
CISA-ADP CWE-467
CVE Modified by kernel.org
5/28/2024 4:16:04 PM
Action
Type
Old Value
New Value
New CVE Received from kernel.org
5/22/2024 3:15:10 AM
Action
Type
Old Value
New Value
Added
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
Added
Reference
kernel.org https://git.kernel.org/stable/c/0e5afdc2315b0737edcf55bede4ee1640d2d464d [No types assigned]
Added
Reference
kernel.org https://git.kernel.org/stable/c/1248582e47a9f7ce0ecd156c39fc61f8b6aa3699 [No types assigned]
Added
Reference
kernel.org https://git.kernel.org/stable/c/1c616528ba4aeb1125a06b407572ab7b56acae38 [No types assigned]
Added
Reference
kernel.org https://git.kernel.org/stable/c/28f28e4bc3a5e0051faa963f10b778ab38c1db69 [No types assigned]
Added
Reference
kernel.org https://git.kernel.org/stable/c/34914971bb3244db4ce2be44e9438a9b30c56250 [No types assigned]
Added
Reference
kernel.org https://git.kernel.org/stable/c/447d44cd2f67a20b596ede3ca3cd67086dfd9ca9 [No types assigned]
Added
Reference
kernel.org https://git.kernel.org/stable/c/949fe9b35570361bc6ee2652f89a0561b26eec98 [No types assigned]
Added
Reference
kernel.org https://git.kernel.org/stable/c/adbda14730aacce41c0d3596415aa39ad63eafd9 [No types assigned]
Quick Info
CVE Dictionary Entry: CVE-2021-47456 NVD
Published Date: 05/22/2024 NVD
Last Modified: 06/17/2026
Source: kernel.org