{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-99611","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-09-25T10:25:14.424Z","datePublished":"2026-11-20T05:49:34.012Z","dateUpdated":"2026-11-22T11:09:17.019Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-11-22T11:09:17.019Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: line6: Reject capture buffers smaller than two packets\n\nline6_capture_copy() splits the copy into the ALSA ring buffer once at\nthe buffer end and wraps pos_done once, which is only correct when one\npacket holds at most buffer_size frames. The packet size comes from the\ndevice's endpoint, and the per-device hw structs allow 64-byte periods\nwith periods_min 1, so a packet can be larger than the whole buffer.\naudio_in_callback() logs an oversized packet and then copies it anyway.\n\nThe packet size is known at probe time, so constrain\nSNDRV_PCM_HW_PARAM_BUFFER_BYTES in snd_line6_capture_open() to at least\ntwice the larger of the two endpoints' packet sizes. Two rather than\none, because pos_done advances by the packet and wraps once, so a buffer\nof exactly one packet leaves the position unchanged after every packet.\nhw_params then rejects a buffer that cannot hold two packets, and the\nsingle wrap is valid for every configuration that gets through. Keep a\nguard in line6_capture_copy() that drops an oversized packet with a\nratelimited error, for the case that should no longer be reachable.\n\nReproduced on 7.3-rc7 with a USB/IP device presenting the GuitarPort\ninterface layout and 1024-byte packets into a 128-byte buffer: ALSA\nlogged \"invalid position: pos = 224, buffer size = 32\" and the driver\nlogged \"driver bug: len\" on every following packet. With this patch a\n1024-byte buffer is refused at hw_params, and a 2048-byte buffer streams\nfor 30 s with no report and with the position moving inside the buffer."}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - snd_pcm_open_substream() calls snd_line6_capture_open(), and SNDRV_PCM_IOCTL_HW_PARAMS accepts a one-period buffer at capture_hw.period_bytes_min (64, periods_min 1) because that open did not constrain BUFFER_BYTES. audio_in_callback() then hands the isochronous actual_length to line6_capture_copy().\nAC:L - The caller issues SNDRV_PCM_TRIGGER_START so submit_audio_in_urb() runs. podx3 capture is 8 channels times bytes_per_channel (24 bytes/frame) at 48000 Hz, and submit_audio_out_urb() steps that rate by intervals_per_second 8000 (6 frames, 144 bytes). That actual_length exceeds a one-period buffer near period_bytes_min, so the first completion's single subtract leaves in.pos_done above runtime->buffer_size.\nPR:L - snd_line6_capture_ops performs no capability check. Opening the PCM device node, which a logged-in session user or audio-group member can do, is enough to issue hw_params and trigger.\nUI:N - That user opens the capture substream, sets the small buffer, and starts it. The isochronous completions are generated by the URBs they submitted.\nS:U - The faulty memcpy and the resulting fault are in the host kernel address space that owns this line6 PCM runtime.\nC:H - line6_capture_copy() assigns buffer_size - in.pos_done to signed int len. After in.pos_done passes 2^31 frames, len becomes a large positive int and memcpy reads len*bytes_per_frame bytes from the URB pointer fbuf, far past the isochronous packet.\nI:H - The same memcpy destination is runtime->dma_area + in.pos_done*bytes_per_frame. Past 2^31 frames that offset is gigabytes beyond the PAGE_ALIGN'd PCM allocation, and the signed length product wraps, so the size_t copy is not limited to the ring.\nA:H - snd_line6_pointer() returns that out-of-range in.pos_done, and every later packet logs unratelimited dev_err(\"driver bug: len\") from the URB callback. When len turns positive the wild memcpy faults in kernel context."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["sound/usb/line6/capture.c"],"versions":[{"version":"705ececd1c60d0f5d6ef2a719008847883516970","lessThan":"3e7f477a9e56b627739832e6cf9b682693a474a9","status":"affected","versionType":"git"},{"version":"705ececd1c60d0f5d6ef2a719008847883516970","lessThan":"faf1f471319775e280d959ffbffaa44fd7e5f5b0","status":"affected","versionType":"git"},{"version":"705ececd1c60d0f5d6ef2a719008847883516970","lessThan":"9885eaa2091335ed181c93f2b406604ee2bf2312","status":"affected","versionType":"git"},{"version":"705ececd1c60d0f5d6ef2a719008847883516970","lessThan":"db51425c9eb038a8e40e09b837afde015ae9e3ec","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["sound/usb/line6/capture.c"],"versions":[{"version":"2.6.30","status":"affected"},{"version":"0","lessThan":"2.6.30","status":"unaffected","versionType":"semver"},{"version":"6.12.118","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.64","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.5","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc2","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.30","versionEndExcluding":"6.12.118"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.30","versionEndExcluding":"6.18.64"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.30","versionEndExcluding":"7.3.5"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.30","versionEndExcluding":"7.4-rc2"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/3e7f477a9e56b627739832e6cf9b682693a474a9"},{"url":"https://git.kernel.org/stable/c/faf1f471319775e280d959ffbffaa44fd7e5f5b0"},{"url":"https://git.kernel.org/stable/c/9885eaa2091335ed181c93f2b406604ee2bf2312"},{"url":"https://git.kernel.org/stable/c/db51425c9eb038a8e40e09b837afde015ae9e3ec"}],"title":"ALSA: line6: Reject capture buffers smaller than two packets","x_generator":{"engine":"bippy-1.2.0"}}}}