USB: serial: fix ioctl hangup race
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 6.6.160, 6.12.113, 6.18.56, 7.2.10
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
In the Linux kernel, the following vulnerability has been resolved: USB: serial: fix ioctl hangup race The tty ioctls can race with hangup and end up calling into a tty driver for a device that is already gone or powered down. Serialise the callbacks using the tty port mutex and add the missing checks to make sure the port has not been hung up before accessing port driver data or hardware. This specifically avoids dereferencing a NULL-pointer if a device is disconnected during lengthy break signalling. Note that TIOCGICOUNT and TIOCMIWAIT do not access port driver data or hardware and are therefore not affected by the race.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
Version range not reported
- Linux Linux
2.6.26
- KernelLinux
From 2.6.26 · fixed in 6.6.160; From 6.7.0 · fixed in 6.12.113; From 6.13.0 · fixed in 6.18.56; From 6.19.0 · fixed in 7.2.10
References 8
git.kernel.org
- stable/c/c7ef25e96dc3f808eb891bbbd43b6a682846eb0c
- stable/c/98f0a25134bfce44ebd1db0341fa0e8603ff276d
- stable/c/3a728adbed9fd822f99a9d9c5ebad5c3b565ba4a
- stable/c/24d6edb6bd7f7a9e6cee2f8fe435781daab8aa0f
- stable/c/ae0da9a5c1ca95c20cc5feffd511ce6eae75924e
- stable/c/4597ddd6168ae2a4123404e5f0871f1070dc7773
- stable/c/7912a95d1345c77d8d63b530b00c118700b78abd
- stable/c/ae0e61d95677efa778379853e495d748e6efbf95