CVE-2026-142819
kgdb: Fix buffer overflow in the qRcmd packet handler
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.
In the words of the organisation that published it (Linux).
Affected
- Linux: from a0de055cf61338549b13079a5677ef2e1b6472ef before 45810081364b5fa468e6c8a33ec; from a0de055cf61338549b13079a5677ef2e1b6472ef before abbe947c900683a5adef2829413; from a0de055cf61338549b13079a5677ef2e1b6472ef before 9b11cd179e854833089bc42e7cf; from a0de055cf61338549b13079a5677ef2e1b6472ef before 5073e10eb2bdcb3fe614abbfdef; 2.6.35
as the publisher (Linux) lists them.
Likelihood of exploitation
FIRST's EPSS gives a 0.34% chance of exploitation in the next 30 days, higher than 30% of all CVEs (as of 4 December 2026).
References
- git.kernel.org/stable/c/3da6acf8387e699f142d0bb723e921f2cca529da
- git.kernel.org/stable/c/45810081364b5fa468e6c8a33ecd9aa55a2ae90a
- git.kernel.org/stable/c/5073e10eb2bdcb3fe614abbfdefe2e41320222d6
- git.kernel.org/stable/c/61e7228c532950643d9ccaa2274d30c61a00d376
- git.kernel.org/stable/c/77f35ee4cf4e5981c3bd0fe403cc2b1db332aa4b
- git.kernel.org/stable/c/9b11cd179e854833089bc42e7cf57c7ddd1cca2b
- git.kernel.org/stable/c/9ca9e8c857b55a081d5a1f8039b27cbb4d646b49
- git.kernel.org/stable/c/abbe947c900683a5adef2829413f5beb925fd8b9
Record
| Published | 04:18 UTC, 3 December 2026 |
|---|---|
| Last changed | 04:18 UTC, 3 December 2026 |
| NVD status | Received |
| Published by | Linux |
Follow it
Add the feed to a feed reader and new items arrive there as they are published, with no account here and no email.
Any other reader: paste https://envmap.tech/security/feed.xml
Where this comes from
- Security news: the feeds of 19 security newsrooms: BleepingComputer, The Record, Krebs on Security, Dark Reading, SecurityWeek, The Hacker News, Help Net Security, CyberScoop, Infosecurity Magazine, Cybersecurity Dive, CSO Online, Security Affairs and Schneier on Security, and the security sections of The Register, Ars Technica, Wired, TechCrunch, The Verge and The Guardian. One story covered by several newsrooms is shown once, led by the first to report it, with the others linked beside it; headlines count as the same story only when they share most of their words. Topics come from the words in the headline.
- Advisories: CISA, the UK's National Cyber Security Centre, Microsoft, AWS, Google Kubernetes Engine, GitLab, Cisco, Fortinet, Palo Alto Networks, Ubuntu and Chrome's stable releases, from their own feeds, and Kubernetes's official CVE feed.
- Threat research: the research blogs of Microsoft Threat Intelligence, Cisco Talos, Unit 42, Securelist, Check Point Research, ESET Research, Datadog Security Labs, GitHub Security Lab and Google's Project Zero.
- What security people are talking about: Hacker News's public search, the security stories with the most points in the last three days.
- CVEs in DevOps software: every new CVE whose description, title or affected products name software such as Kubernetes, containerd, Docker, Helm, Argo CD, Istio, nginx, Jenkins, GitLab, Terraform, Vault, Grafana, PostgreSQL, Redis, OpenSSH or OpenSSL.
- Every CVE, its description, scores, weaknesses and references: the National Vulnerability Database (NVD), which publishes every CVE from the CVE Program.
- The title and the affected products and versions: the CVE record itself on CVE.org, written by the organisation that published the CVE (its CNA), often before NVD has analysed it.
- Exploited in the wild: CISA's Known Exploited Vulnerabilities catalogue, as NVD carries it, with CISA's date added and its fix-by date for US federal agencies.
- Likelihood of exploitation: FIRST's Exploit Prediction Scoring System (EPSS), the chance of exploitation in the next 30 days, updated daily.
Nothing here is written by an AI, summarised or rewritten: a headline is its newsroom's own and opens its story. A description is in the words of the organisation that published the CVE; a score says whose it is, NVD's or the publisher's; a CVE nobody has scored yet says so. A CVE that is rejected comes off every list. When a source does not answer, the page keeps the last answer it gave and says since when.
How to read it
- Critical, high, medium, low: the CVSS base score, 0 to 10. It measures how bad a vulnerability is, not how likely it is to be used.
- Exploited in the wild: proof that attackers use it. Patch these first, whatever their score.
- EPSS: how likely it is to be used in the next 30 days. A low score is not a promise.
EnvMap is a free, open-source DevOps control plane that you run yourself; its Security page brings your scanners' findings into one place. See what it does.