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.
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
| Date | Event | Detail |
| March 9, 2026 | Reserved | Reserved by Linux |
| May 1, 2026 | Published | Published (CNA: Linux) |
| November 6, 2026 | ENRICHED | ENRICHED — CVE-2026-31778 (Linux). Received CVSS 7.1 and CPE data from NVD. |
Affected
Affected products and packages — 2 rows
| Vendor | Product / Package | Ecosystem | Version introduced | Fixed |
| Linux | Linux | — | bafeee5b1f8d32cbf791c322b40a6fa91d8ccf7a | — |
| Linux | Linux | — | 2.6.31 | 5.10.253 |
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.