boxscore/security
CVE · referencelatest edition

Reference page — cumulative record through Thursday, November 19, 2026 UTC. Reference pages update as the archive grows; only dated daily editions are immutable pages of record.

CVE-2026-31778

Linux Linux — ALSA: caiaq: fix stack out-of-bounds read in init_card
  AV  AC  PR  UI  S  C  I  A   CVSS    EPSS   %ile   KEV
   L   L   L   N  U  H  N  H    7.1   .0013    2.3     —
AFFECTED
  Product  Versions                                    Fixed
  Linux    bafeee5b1f8d32cbf791c322b40a6fa91d8ccf7a –  —
  Linux    2.6.31 –                                    5.10.253
TIMELINE
  Mar 9   Reserved by Linux
  May 1   Published (CNA: Linux)
  Nov 6   ENRICHED — CVE-2026-31778 (Linux). Received CVSS 7.1 and CPE data from NVD.
CWE-125 · CNA: Linux · CVSS v3.1 · 8 references · NVD status: Analyzed

Description

In the Linux kernel, the following vulnerability has been resolved: ALSA: caiaq: fix stack out-of-bounds read in init_card The loop creates a whitespace-stripped copy of the card shortname where `len < sizeof(card->id)` is used for the bounds check. Since sizeof(card->id) is 16 and the local id buffer is also 16 bytes, writing 16 non-space characters fills the entire buffer, overwriting the terminating nullbyte. When this non-null-terminated string is later passed to snd_card_set_id() -> copy_valid_id_string(), the function scans forward with `while (*nid && ...)` and reads past the end of the stack buffer, reading the contents of the stack. A USB device with a product name containing many non-ASCII, non-space characters (e.g. multibyte UTF-8) will reliably trigger this as follows: BUG: KASAN: stack-out-of-bounds in copy_valid_id_string sound/core/init.c:696 [inline] BUG: KASAN: stack-out-of-bounds in snd_card_set_id_no_lock+0x698/0x74c sound/core/init.c:718 The off-by-one has been present since commit bafeee5b1f8d ("ALSA: snd_usb_caiaq: give better shortname") from June 2009 (v2.6.31-rc1), which first introduced this whitespace-stripping loop. The original code never accounted for the null terminator when bounding the copy. Fix this by changing the loop bound to `sizeof(card->id) - 1`, ensuring at least one byte remains as the null terminator.

Lifecycle

Complete event history — 3 events, chronological
DateEventDetail
March 9, 2026ReservedReserved by Linux
May 1, 2026PublishedPublished (CNA: Linux)
November 6, 2026ENRICHEDENRICHED — CVE-2026-31778 (Linux). Received CVSS 7.1 and CPE data from NVD.

Affected

Affected products and packages — 2 rows
VendorProduct / PackageEcosystemVersion introducedFixed
LinuxLinux—bafeee5b1f8d32cbf791c322b40a6fa91d8ccf7a—
LinuxLinux—2.6.315.10.253

Weaknesses

CWE-125

References (8)

Related

Authoritative record: CVE-2026-31778 at cve.org

Vendors: linux

Weaknesses: CWE-125

About this page

This is a reference page, not a dated page of record. It assembles the complete lifecycle of CVE-2026-31778 from the CVE Program record, NVD enrichment, the CISA KEV catalog, EPSS, and OSV advisories. The box score's numbers (CVSS, EPSS, KEV status) are current as of Thursday, November 19, 2026 UTC and are re-derived as the archive grows; only dated daily editions are immutable pages of record. The authoritative source for this identifier is cve.org.