Description
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.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
b3defb791b26ea0683a93a4f49c77ec45ec96f10 to < 14e178c60ba1cea49186fcfccac93d66aa94e9e0affectedb3defb791b26ea0683a93a4f49c77ec45ec96f10 to < 4980768c5d092493be0deb20d1ee86aa661466f8affectedb3defb791b26ea0683a93a4f49c77ec45ec96f10 to < 2c0cce3a5a660270d65729b0f318d4e01470479daffectedb3defb791b26ea0683a93a4f49c77ec45ec96f10 to < 2db234e163f0d211b69a4eebbec8aacc5a54a80eaffectedb3defb791b26ea0683a93a4f49c77ec45ec96f10 to < 413211dd31cb2ef2fc99fb0aa1a037a97509502caffectedb3defb791b26ea0683a93a4f49c77ec45ec96f10 to < fc5c52848e405b6efb073db5035bb9ebaed11ec4affectedb3defb791b26ea0683a93a4f49c77ec45ec96f10 to < 702d92f361f65d9698c473c7599d471395dc4341affectedb3defb791b26ea0683a93a4f49c77ec45ec96f10 to < 95b2e0361c88753afa030c10698be0a1a5b67650affectedd6693160906d55ba376bf0b88b7c129762170162affected02cbce8576a31df8fca54aaec91ee081076bd79daffected6aab3aa52366a0051e5abf8aae4616c42053fd8eaffectedf8a38ab4cd9624fc5ac8a7f965c7b20f5b62c03caffected623e5c8ae32b39cc8baea83478695dc624935318affectede4ff9f294629b65df3f7982cd4faf86b2856b9d7affectedc3162384aed4cfe3f1a1f40041f3ba8cd7704d88affected3.2.99 to < 3.3affected3.16.54 to < 3.17affected3.18.94 to < 3.19affected4.1.50 to < 4.2affected4.4.115 to < 4.5affected4.9.78 to < 4.10affected4.14.15 to < 4.15affected
Linux Linux
Default version status: affected
4.15affected0 to < 4.15unaffected5.10.273 to ≤ 5.10.*unaffected5.15.224 to ≤ 5.15.*unaffected6.1.191 to ≤ 6.1.*unaffected6.6.160 to ≤ 6.6.*unaffected6.12.113 to ≤ 6.12.*unaffected6.18.56 to ≤ 6.18.*unaffected7.2.10 to ≤ 7.2.*unaffected7.3 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/14e178c60ba1cea49186fcfccac93d66aa94e9e0 ↗
- https://git.kernel.org/stable/c/4980768c5d092493be0deb20d1ee86aa661466f8 ↗
- https://git.kernel.org/stable/c/2c0cce3a5a660270d65729b0f318d4e01470479d ↗
- https://git.kernel.org/stable/c/2db234e163f0d211b69a4eebbec8aacc5a54a80e ↗
- https://git.kernel.org/stable/c/413211dd31cb2ef2fc99fb0aa1a037a97509502c ↗
- https://git.kernel.org/stable/c/fc5c52848e405b6efb073db5035bb9ebaed11ec4 ↗
- https://git.kernel.org/stable/c/702d92f361f65d9698c473c7599d471395dc4341 ↗
- https://git.kernel.org/stable/c/95b2e0361c88753afa030c10698be0a1a5b67650 ↗