CVE-2026-142819

Unknown

Last modified

CVE-2026-142819 is a vulnerability of currently unknown severity. 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.

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.

Affected Software

Source: CNA advisory (CVE.org). NVD analysis pending.

VendorProductVersions
LinuxLinux>= a0de055cf61338549b13079a5677ef2e1b6472ef, < 45810081364b5fa468e6c8a33ecd9aa55a2ae90a; >= a0de055cf61338549b13079a5677ef2e1b6472ef, < abbe947c900683a5adef2829413f5beb925fd8b9; >= a0de055cf61338549b13079a5677ef2e1b6472ef, < 9b11cd179e854833089bc42e7cf57c7ddd1cca2b; >= a0de055cf61338549b13079a5677ef2e1b6472ef, < 5073e10eb2bdcb3fe614abbfdefe2e41320222d6; >= a0de055cf61338549b13079a5677ef2e1b6472ef, < 77f35ee4cf4e5981c3bd0fe403cc2b1db332aa4b; >= a0de055cf61338549b13079a5677ef2e1b6472ef, < 61e7228c532950643d9ccaa2274d30c61a00d376; >= a0de055cf61338549b13079a5677ef2e1b6472ef, < 3da6acf8387e699f142d0bb723e921f2cca529da; >= a0de055cf61338549b13079a5677ef2e1b6472ef, < 9ca9e8c857b55a081d5a1f8039b27cbb4d646b49
LinuxLinux2.6.35

References

Timeline

Published
Last Modified
Status
Received

Frequently Asked Questions

What is CVE-2026-142819?
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.
How severe is CVE-2026-142819?
Severity scoring for CVE-2026-142819 is pending analysis.
How do I fix CVE-2026-142819?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

How Strix Helps

Related CVEs from 2026

Are you affected by CVE-2026-142819?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST