# CVE-2024-42301: dev/parport: fix the array out-of-bounds risk

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.34% (percentile 20, 2026-11-26)
- **CWE:** CWE-129
- **Published:** 2024-08-17T09:09:08.057Z
- **Modified:** 2026-08-05T11:36:30.924Z

## Who should check

- Anyone running Linux \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 166a0bddcc27de41fe13f861c8348e8e53e988c8; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 47b3dce100778001cd76f7e9188944b5cb27a76d; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< a44f88f7576bc1916d8d6293f5c62fbe7cbe03e0; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< c719b393374d3763e64900ee19aaed767d5a08d6; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 7f4da759092a1a6ce35fb085182d02de8cc4cc84; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< b579ea3516c371ecf59d073772bc45dfd28c8a0e; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 7789a1d6792af410aa9b39a1eb237ed24fa2170a; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< ab11dac93d2d568d151b1918d7b84c2d02bacbd5
- Anyone running Linux 2.6.12

## Description

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

dev/parport: fix the array out-of-bounds risk

Fixed array out-of-bounds issues caused by sprintf
by replacing it with snprintf for safer data copying,
ensuring the destination buffer is not overflowed.

Below is the stack trace I encountered during the actual issue:

\[ 66.575408s\] \[pid:5118,cpu4,QThread,4\]Kernel panic - not syncing: stack-protector:
Kernel stack is corrupted in: do\_hardware\_base\_addr+0xcc/0xd0 \[parport\]
\[ 66.575408s\] \[pid:5118,cpu4,QThread,5\]CPU: 4 PID: 5118 Comm:
QThread Tainted: G S W O 5.10.97-arm64-desktop \#7100.57021.2
\[ 66.575439s\] \[pid:5118,cpu4,QThread,6\]TGID: 5087 Comm: EFileApp
\[ 66.575439s\] \[pid:5118,cpu4,QThread,7\]Hardware name: HUAWEI HUAWEI QingYun
PGUX-W515x-B081/SP1PANGUXM, BIOS 1.00.07 04/29/2024
\[ 66.575439s\] \[pid:5118,cpu4,QThread,8\]Call trace:
\[ 66.575469s\] \[pid:5118,cpu4,QThread,9\] dump\_backtrace+0x0/0x1c0
\[ 66.575469s\] \[pid:5118,cpu4,QThread,0\] show\_stack+0x14/0x20
\[ 66.575469s\] \[pid:5118,cpu4,QThread,1\] dump\_stack+0xd4/0x10c
\[ 66.575500s\] \[pid:5118,cpu4,QThread,2\] panic+0x1d8/0x3bc
\[ 66.575500s\] \[pid:5118,cpu4,QThread,3\] \_\_stack\_chk\_fail+0x2c/0x38
\[ 66.575500s\] \[pid:5118,cpu4,QThread,4\] do\_hardware\_base\_addr+0xcc/0xd0 \[parport\]

## Affected and fixed versions

- Linux: \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 166a0bddcc27de41fe13f861c8348e8e53e988c8; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 47b3dce100778001cd76f7e9188944b5cb27a76d; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< a44f88f7576bc1916d8d6293f5c62fbe7cbe03e0; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< c719b393374d3763e64900ee19aaed767d5a08d6; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 7f4da759092a1a6ce35fb085182d02de8cc4cc84; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< b579ea3516c371ecf59d073772bc45dfd28c8a0e; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 7789a1d6792af410aa9b39a1eb237ed24fa2170a; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< ab11dac93d2d568d151b1918d7b84c2d02bacbd5 (cvelist)
- Linux: 2.6.12 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-42301. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-42301.md
Affected: Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 166a0bddcc27de41fe13f861c8348e8e53e988c8; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 47b3dce100778001cd76f7e9188944b5cb27a76d; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < a44f88f7576bc1916d8d6293f5c62fbe7cbe03e0; >= 1da177e4c3f41524e886b7f…
Fixed in: Linux 166a0bddcc27de41fe13f861c8348e8e53e988c8, Linux 47b3dce100778001cd76f7e9188944b5cb27a76d, Linux 7f4da759092a1a6ce35fb085182d02de8cc4cc84, Linux 7789a1d6792af410aa9b39a1eb237ed24fa2170a

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-42301 being exploited?

There is no confirmed exploitation: CVE-2024-42301 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.34% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-42301?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-42301?

Linux \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 166a0bddcc27de41fe13f861c8348e8e53e988c8; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 47b3dce100778001cd76f7e9188944b5cb27a76d; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< a44f88f7576bc1916d8d6293f5c62fbe7cbe03e0; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< c719b393374d3763e64900ee19aaed767d5a08d6; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 7f4da759092a1a6ce35fb085182d02de8cc4cc84; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< b579ea3516c371ecf59d073772bc45dfd28c8a0e; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 7789a1d6792af410aa9b39a1eb237ed24fa2170a; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< ab11dac93d2d568d151b1918d7b84c2d02bacbd5; Linux 2.6.12.

### Is there a fix for CVE-2024-42301?

Yes. Fixed in Linux 166a0bddcc27de41fe13f861c8348e8e53e988c8, Linux 47b3dce100778001cd76f7e9188944b5cb27a76d, Linux 7f4da759092a1a6ce35fb085182d02de8cc4cc84, Linux 7789a1d6792af410aa9b39a1eb237ed24fa2170a. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2024-42301?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/166a0bddcc27de41fe13f861c8348e8e53e988c8>
- patch: <https://git.kernel.org/stable/c/47b3dce100778001cd76f7e9188944b5cb27a76d>
- patch: <https://git.kernel.org/stable/c/a44f88f7576bc1916d8d6293f5c62fbe7cbe03e0>
- patch: <https://git.kernel.org/stable/c/c719b393374d3763e64900ee19aaed767d5a08d6>
- patch: <https://git.kernel.org/stable/c/7f4da759092a1a6ce35fb085182d02de8cc4cc84>
- patch: <https://git.kernel.org/stable/c/b579ea3516c371ecf59d073772bc45dfd28c8a0e>
- patch: <https://git.kernel.org/stable/c/7789a1d6792af410aa9b39a1eb237ed24fa2170a>
- patch: <https://git.kernel.org/stable/c/ab11dac93d2d568d151b1918d7b84c2d02bacbd5>
- other: <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>
- other: <https://lists.debian.org/debian-lts-announce/2024/10/msg00003.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-42301>

HTML: <https://flawdb.com/CVE-2024-42301> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-42301>
