Description (CNA)
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 (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected b3defb791b26ea0683a93a4f49c77ec45ec96f10 before 2db234e163f0d211b69a4eebbec8aacc5a54a80e; affected b3defb791b26ea0683a93a4f49c77ec45ec96f10 before 413211dd31cb2ef2fc99fb0aa1a037a97509502c; affected b3defb791b26ea0683a93a4f49c77ec45ec96f10 before fc5c52848e405b6efb073db5035bb9ebaed11ec4; affected b3defb791b26ea0683a93a4f49c77ec45ec96f10 before 702d92f361f65d9698c473c7599d471395dc4341; affected b3defb791b26ea0683a93a4f49c77ec45ec96f10 before 95b2e0361c88753afa030c10698be0a1a5b67650; affected d6693160906d55ba376bf0b88b7c129762170162; affected 02cbce8576a31df8fca54aaec91ee081076bd79d; affected 6aab3aa52366a0051e5abf8aae4616c42053fd8e; affected f8a38ab4cd9624fc5ac8a7f965c7b20f5b62c03c; affected 623e5c8ae32b39cc8baea83478695dc624935318; affected e4ff9f294629b65df3f7982cd4faf86b2856b9d7; affected c3162384aed4cfe3f1a1f40041f3ba8cd7704d88; affected 3.2.99 before 3.3; affected 3.16.54 before 3.17; affected 3.18.94 before 3.19; affected 4.1.50 before 4.2; affected 4.4.115 before 4.5; affected 4.9.78 before 4.10; affected 4.14.15 before 4.15 |
| Linux / Linux | affected 4.15; unaffected 0 before 4.15; unaffected 6.6.160 through 6.6.*; unaffected 6.12.113 through 6.12.*; unaffected 6.18.56 through 6.18.*; unaffected 7.2.10 through 7.2.*; unaffected 7.3 through * |
CWE
No CWE identifiers supplied.
References
- 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