CVE-2026-142819

Not scored yetLast modified Dec 3, 2026

Description

In the Linux kernel, the following vulnerability has been resolved:

kgdb: Fix buffer overflow in the qRcmd packet handler

gdb_cmd_query() decodes the hex payload of a qRcmd packet (the GDB "monitor" command passthrough to kdb) into remcom_out_buffer and hands it to kdb_parse(). It sizes the decode with strlen() of the payload:

int len = strlen(remcom_in_buffer + 6); ... kgdb_hex2mem(remcom_in_buffer + 6, remcom_out_buffer, len); len = len / 2;

kgdb_hex2mem() takes count as the number of bytes to produce and decodes them in place at buf, reading and writing 2 * count bytes there. len here is the hex character count, twice the decoded size, so the decode runs over 2 * len bytes at remcom_in_buffer + 6, off the end of the buffer. On x86 BUFMAX is 1024, so a 256-byte monitor command (512 hex characters) overruns remcom_in_buffer during the in-place decode:

BUG: KASAN: global-out-of-bounds in kgdb_hex2mem+0x131/0x160 Read of size 1 at addr ffffffff8765ef05 by task sh/1 ... kgdb_hex2mem+0x131/0x160 gdb_serial_stub+0x16d4/0x3170 kgdb_cpu_enter+0xb68/0x1520 ... The buggy address belongs to the variable: remcom_in_buffer+0x405/0x420

Halve len before the call so kgdb_hex2mem() gets the decoded byte count. It then reads the len hex characters already in remcom_in_buffer and writes len / 2 bytes, all inside the buffer, and remcom_out_buffer holds the same command as before.

Metrics

No CVSS score has been published yet.

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

No affected versions have been published.

Timeline

Published
Dec 3, 2026
Last modified
Dec 3, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-142829.8The GoDAM – Organize WordPress Media Library & File Manager with Unlimited Folders for Images, Videos & more plugin for WordPress is vulneraCVE-2026-142820In the Linux kernel, the following vulnerability has been resolved: kgdb: Fix buffer overflow in the 'm' packet handler gdb_cmd_memread() CVE-2026-142821In the Linux kernel, the following vulnerability has been resolved: drm/amdkfd: validate SRAT subtables before parsing The KFD SRAT walkerCVE-2026-142822In the Linux kernel, the following vulnerability has been resolved: ipmr: drop packets with unknown ingress VIF A packet can race with VIFCVE-2026-142823In the Linux kernel, the following vulnerability has been resolved: bonding: fix out-of-bounds read of arp_ip_target arp_ip_target is a moCVE-2026-142824In the Linux kernel, the following vulnerability has been resolved: ASoC: qcom: qdsp6: q6afe: fix clk vote response type mismatch The respCVE-2026-142825In the Linux kernel, the following vulnerability has been resolved: scsi: ufs: core: Clear stale UIC result byte before peer DME retries PCVE-2026-142826In the Linux kernel, the following vulnerability has been resolved: scsi: ufs: bsg: Reject UIC commands with a non-zero result byte ufs_bsCVE-2026-142827In the Linux kernel, the following vulnerability has been resolved: parisc: eisa_enumerator: Fix out-of-bounds reads of the EEPROM buffer CVE-2026-142828In the Linux kernel, the following vulnerability has been resolved: net/rds: ib: don't enable IRQs in rds_ib_conn_free() __rds_conn_createCVE-2026-142829In the Linux kernel, the following vulnerability has been resolved: drm/amd/display: don't WARN when removing an unallocated MST payload [CVE-2026-142830In the Linux kernel, the following vulnerability has been resolved: ntfs: do not use a stale runlist pointer when undoing $MFT extension W
CVE-2026-142819: Unscored | Vulnix