CVE-2026-63942

Source
https://cve.org/CVERecord?id=CVE-2026-63942
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-63942.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-63942
Downstream
Published
2026-07-19T14:55:37.717Z
Modified
2026-07-22T05:29:37.113641288Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
parport: Fix race between port and client registration
Details

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

parport: Fix race between port and client registration

The parport subsystem registers port devices before they are fully initialised, resulting in a race condition where client drivers such as lp can attach to ports that are not completely initialised or even being torn down.

When the port and client drivers are built as modules and loaded around the same time during boot, this occasionally results in a crash. I was able to make this happen reliably in a VM with a PC-style parallel port by patching parport_pc to fail probing:

--- a/drivers/parport/parportpc.c +++ b/drivers/parport/parportpc.c @@ -2069,7 +2069,7 @@ static struct parport *_parportpcprobeport(unsigned long int base, if (!p) goto out3;

  • baseres = requestregion(base, 3, p->name);
  • baseres = NULL; if (!baseres) goto out4;

and then running:

while true; do
    modprobe lp & modprobe parport_pc
wait
rmmod lp parport_pc
done

for a few seconds.

In the long term I think port registration should be changed to put the call to deviceadd() inside parportannounce_port(), but since the latter currently cannot fail this will require changing all port drivers.

For now, add a flag to indicate whether a port has been "announced" and only try to attach client drivers to ports when the flag is set.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/63xxx/CVE-2026-63942.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
6fa45a22689722dac9f0e90c0931d4b34b334ede
Fixed
f3378b0d7bd4605de89b083b2900788157a181cc
Fixed
290f515c5e3b3900bc2fe24f179999fd08d23bfa
Fixed
d16548be2ea5058227d79799e81dab61c9bca8ec
Fixed
15b1723c1472e802f9f7e69ae4e64f7dbf588848
Fixed
51026cff1f4f3b762a0b5a07c727bd59cef45320
Fixed
74d6aae1df45d3414178986be743f946988fddf6
Fixed
a1e81b58da0179531bedf0b9f2811f5f992d5c4b
Fixed
ef15ccbb3e8640a723c42ad90eaf81d66ae02017

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-63942.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.2.0
Fixed
5.10.259
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.210
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.176
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.143
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.93
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.35
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.0.12

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-63942.json"