← VULNERABILITIES

CVE-2026-99608

ALSA: usx2y: Guard the playback copy

UnscoredFix available
CVSS
—
EPSS
0.21% (p12)
Published
2026-11-20
Age
14d old
Modified
2026-11-23
Product
Linux Linux

Description

In the Linux kernel, the following vulnerability has been resolved: ALSA: usx2y: Guard the playback copy usx2y_urb_play_prepare() sums the packet lengths of a whole URB, copies that many frames with a single wrap, and sizes each playback packet from the capture packet's actual_length. Three things are unchecked: that the URB fits in the ring buffer, that a packet fits in the playback endpoint's maxpacksize, from which tmpbuf is allocated, and that actual_length is a whole number of frames. The ISO descriptors take the raw actual_length while transfer_buffer_length and the copies take count * stride, so a packet that is not a multiple of the stride makes the descriptors add up to more than the buffer, by up to stride - 1 bytes per packet. Return -EPIPE, as the existing packet-size check does, when the URB is larger than the buffer or a packet is larger than maxpacksize, and size each descriptor from whole frames, so the descriptors add up to transfer_buffer_length and each stays within maxpacksize. The buffer case is prevented by the previous patch and this is the guard for it; the other two depend only on the device. The first case is reachable on the unpatched driver with ordinary packets: on 7.3-rc7, a USB/IP device presenting the US-122 interface layout and sending 48-frame packets, with a 100-frame playback buffer (two 50-frame periods, inside the stock constraints), KASAN reports: BUG: KASAN: out-of-bounds in i_usx2y_urb_complete+0x79b/0x1ac0 Read of size 18446744073709551280 at addr ffff88800e6b02e0 by task vhci_rx/80 With both patches, the same device and a 200-frame playback buffer is refused at hw_params with EINVAL, and a 400-frame buffer plays for 30 s with the position advancing inside the buffer, no KASAN report and neither guard message. The maxpacksize check is not exercised: the emulated device reports the same wMaxPacketSize on both endpoints. The descriptor case is visible with capture packets of 195 bytes at stride 4 (48 frames and 3 bytes): without this change the four descriptors add up to 780 bytes for 768 bytes of data, and USB/IP's completion check refuses the URB ("total length of iso packets 780 not equal to actual length of buffer 768", -EPROTO), after which the driver stops the streams. With this patch every descriptor is 192 bytes, the descriptors add up to the data in every URB for 30 s, the position advances inside the buffer and KASAN reports nothing. The 48-frame playback run above is unchanged.

Fixed in

116f158a6f6820a93faa12d46d5a2956cae4e4d2 · 38bb5df007a80f81861a79228f7dae29e4e263c6 · 3b75d7b1fd9f1f9b4f2f0dbe030c057a089fcaf9 · 812873e093ab6557939348a9119c19fd1c057556 · bf8da18fce0c5a5281be4849c7706b17d490f37a · deeccc01999ed8982507945e5ca750e75f0437dc · df1f1a0c808f4ef43c4fdd03d7e79f062d46ebce · e2c6de52ffacb2c0f4076884ee3fdb744735a4cb

Affected packages

EcosystemPackageRangeFixed
vendorLinux>=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, <116f158a6f6820a93faa12d46d5a2956cae4e4d2116f158a6f6820a93faa12d46d5a2956cae4e4d2
vendorLinux>=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, <38bb5df007a80f81861a79228f7dae29e4e263c638bb5df007a80f81861a79228f7dae29e4e263c6
vendorLinux>=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, <3b75d7b1fd9f1f9b4f2f0dbe030c057a089fcaf93b75d7b1fd9f1f9b4f2f0dbe030c057a089fcaf9
vendorLinux>=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, <812873e093ab6557939348a9119c19fd1c057556812873e093ab6557939348a9119c19fd1c057556
vendorLinux>=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, <bf8da18fce0c5a5281be4849c7706b17d490f37abf8da18fce0c5a5281be4849c7706b17d490f37a
vendorLinux>=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, <deeccc01999ed8982507945e5ca750e75f0437dcdeeccc01999ed8982507945e5ca750e75f0437dc
vendorLinux>=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, <df1f1a0c808f4ef43c4fdd03d7e79f062d46ebcedf1f1a0c808f4ef43c4fdd03d7e79f062d46ebce
vendorLinux>=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, <e2c6de52ffacb2c0f4076884ee3fdb744735a4cbe2c6de52ffacb2c0f4076884ee3fdb744735a4cb

Sources

  • NVD · first seen 14d ago · NVD terms of use
  • CVE List · first seen 14d ago · CVE Terms of Use

References

JSON