# CVE-2026-142819: kgdb: Fix buffer overflow in the qRcmd packet handler

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **Published:** 2026-12-03T03:20:38.940Z
- **Modified:** 2026-12-03T04:18:17.260Z

## Who should check

- Anyone running Linux \>= a0de055cf61338549b13079a5677ef2e1b6472ef, \< 45810081364b5fa468e6c8a33ecd9aa55a2ae90a; \>= a0de055cf61338549b13079a5677ef2e1b6472ef, \< abbe947c900683a5adef2829413f5beb925fd8b9; \>= a0de055cf61338549b13079a5677ef2e1b6472ef, \< 9b11cd179e854833089bc42e7cf57c7ddd1cca2b; \>= a0de055cf61338549b13079a5677ef2e1b6472ef, \< 5073e10eb2bdcb3fe614abbfdefe2e41320222d6; \>= a0de055cf61338549b13079a5677ef2e1b6472ef, \< 77f35ee4cf4e5981c3bd0fe403cc2b1db332aa4b; \>= a0de055cf61338549b13079a5677ef2e1b6472ef, \< 61e7228c532950643d9ccaa2274d30c61a00d376; \>= a0de055cf61338549b13079a5677ef2e1b6472ef, \< 3da6acf8387e699f142d0bb723e921f2cca529da; \>= a0de055cf61338549b13079a5677ef2e1b6472ef, \< 9ca9e8c857b55a081d5a1f8039b27cbb4d646b49
- Anyone running Linux 2.6.35

## 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 and fixed versions

- Linux: \>= a0de055cf61338549b13079a5677ef2e1b6472ef, \< 45810081364b5fa468e6c8a33ecd9aa55a2ae90a; \>= a0de055cf61338549b13079a5677ef2e1b6472ef, \< abbe947c900683a5adef2829413f5beb925fd8b9; \>= a0de055cf61338549b13079a5677ef2e1b6472ef, \< 9b11cd179e854833089bc42e7cf57c7ddd1cca2b; \>= a0de055cf61338549b13079a5677ef2e1b6472ef, \< 5073e10eb2bdcb3fe614abbfdefe2e41320222d6; \>= a0de055cf61338549b13079a5677ef2e1b6472ef, \< 77f35ee4cf4e5981c3bd0fe403cc2b1db332aa4b; \>= a0de055cf61338549b13079a5677ef2e1b6472ef, \< 61e7228c532950643d9ccaa2274d30c61a00d376; \>= a0de055cf61338549b13079a5677ef2e1b6472ef, \< 3da6acf8387e699f142d0bb723e921f2cca529da; \>= a0de055cf61338549b13079a5677ef2e1b6472ef, \< 9ca9e8c857b55a081d5a1f8039b27cbb4d646b49 (cvelist)
- Linux: 2.6.35 (cvelist)

## Technologies

Linux kernel

## Mitigation

- Upgrade Linux to 9ca9e8c857b55a081d5a1f8039b27cbb4d646b49 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-142819. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-142819.md
Affected: Linux >= a0de055cf61338549b13079a5677ef2e1b6472ef, < 45810081364b5fa468e6c8a33ecd9aa55a2ae90a; >= a0de055cf61338549b13079a5677ef2e1b6472ef, < abbe947c900683a5adef2829413f5beb925fd8b9; >= a0de055cf61338549b13079a5677ef2e1b6472ef, < 9b11cd179e854833089bc42e7cf57c7ddd1cca2b; >= a0de055cf61338549b13079…
Fixed in: Linux 45810081364b5fa468e6c8a33ecd9aa55a2ae90a, Linux 9b11cd179e854833089bc42e7cf57c7ddd1cca2b, Linux 5073e10eb2bdcb3fe614abbfdefe2e41320222d6, Linux 77f35ee4cf4e5981c3bd0fe403cc2b1db332aa4b, Linux 61e7228c532950643d9ccaa2274d30c61a00d376, Linux 3da6acf8387e699f142d0bb723e921f2cca529da, Linux 9ca9e…

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-142819 being exploited?

There is no confirmed exploitation: CVE-2026-142819 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

### How serious is CVE-2026-142819?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-142819?

Linux \>= a0de055cf61338549b13079a5677ef2e1b6472ef, \< 45810081364b5fa468e6c8a33ecd9aa55a2ae90a; \>= a0de055cf61338549b13079a5677ef2e1b6472ef, \< abbe947c900683a5adef2829413f5beb925fd8b9; \>= a0de055cf61338549b13079a5677ef2e1b6472ef, \< 9b11cd179e854833089bc42e7cf57c7ddd1cca2b; \>= a0de055cf61338549b13079a5677ef2e1b6472ef, \< 5073e10eb2bdcb3fe614abbfdefe2e41320222d6; \>= a0de055cf61338549b13079a5677ef2e1b6472ef, \< 77f35ee4cf4e5981c3bd0fe403cc2b1db332aa4b; \>= a0de055cf61338549b13079a5677ef2e1b6472ef, \< 61e7228c532950643d9ccaa2274d30c61a00d376; \>= a0de055cf61338549b13079a5677ef2e1b6472ef, \< 3da6acf8387e699f142d0bb723e921f2cca529da; \>= a0de055cf61338549b13079a5677ef2e1b6472ef, \< 9ca9e8c857b55a081d5a1f8039b27cbb4d646b49; Linux 2.6.35.

### Is there a fix for CVE-2026-142819?

Yes. Fixed in Linux 45810081364b5fa468e6c8a33ecd9aa55a2ae90a, Linux 9b11cd179e854833089bc42e7cf57c7ddd1cca2b, Linux 5073e10eb2bdcb3fe614abbfdefe2e41320222d6, Linux 77f35ee4cf4e5981c3bd0fe403cc2b1db332aa4b, Linux 61e7228c532950643d9ccaa2274d30c61a00d376, Linux 3da6acf8387e699f142d0bb723e921f2cca529da, Linux 9ca9e8c857b55a081d5a1f8039b27cbb4d646b49. Upgrade Linux to 9ca9e8c857b55a081d5a1f8039b27cbb4d646b49 or later.

### How do I check if I'm affected by CVE-2026-142819?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/45810081364b5fa468e6c8a33ecd9aa55a2ae90a>
- other: <https://git.kernel.org/stable/c/abbe947c900683a5adef2829413f5beb925fd8b9>
- other: <https://git.kernel.org/stable/c/9b11cd179e854833089bc42e7cf57c7ddd1cca2b>
- other: <https://git.kernel.org/stable/c/5073e10eb2bdcb3fe614abbfdefe2e41320222d6>
- other: <https://git.kernel.org/stable/c/77f35ee4cf4e5981c3bd0fe403cc2b1db332aa4b>
- other: <https://git.kernel.org/stable/c/61e7228c532950643d9ccaa2274d30c61a00d376>
- other: <https://git.kernel.org/stable/c/3da6acf8387e699f142d0bb723e921f2cca529da>
- other: <https://git.kernel.org/stable/c/9ca9e8c857b55a081d5a1f8039b27cbb4d646b49>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-142819>

HTML: <https://flawdb.com/CVE-2026-142819> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-142819>
