ALSA: seq: Serialize compat port-info ioctls
- 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 3.3, 3.17, 3.19, 4.2, 4.5, and 6 more
- 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: ALSA: seq: Serialize compat port-info ioctls The native sequencer ioctl path serializes handler calls with client->ioctl_mutex, but the translated port-info compat path invokes the same handlers through snd_seq_kernel_client_ctl() without taking that mutex. This lets concurrent compat CREATE_PORT requests pass the port-count check before any request reaches the serialized insertion. The computed integer port index can then exceed the address field range and wrap to an existing index. Subsequent subscriber teardown can resolve the duplicate address to the wrong port and access a freed subscriber. Take ioctl_mutex while dispatching converted port-info requests, matching the native ioctl path. All translated port-info commands share this helper, so their accesses to the client port state are serialized as well.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From 3.2.99 · fixed in 3.3; From 3.16.54 · fixed in 3.17; From 3.18.94 · fixed in 3.19; From 4.1.50 · fixed in 4.2; From 4.4.115 · fixed in 4.5; From 4.9.78 · fixed in 4.10; From 4.14.15 · fixed in 4.15
- Linux Linux
4.15
- KernelLinux
From 4.15.0 · 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/14e178c60ba1cea49186fcfccac93d66aa94e9e0
- stable/c/4980768c5d092493be0deb20d1ee86aa661466f8
- stable/c/2c0cce3a5a660270d65729b0f318d4e01470479d
- stable/c/2db234e163f0d211b69a4eebbec8aacc5a54a80e
- stable/c/413211dd31cb2ef2fc99fb0aa1a037a97509502c
- stable/c/fc5c52848e405b6efb073db5035bb9ebaed11ec4
- stable/c/702d92f361f65d9698c473c7599d471395dc4341
- stable/c/95b2e0361c88753afa030c10698be0a1a5b67650