GHSA-4HHH-7XH3-27VR
Vulnerability from github – Published: 2026-12-03 06:30 – Updated: 2026-12-03 06:30In 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": [],
"aliases": [
"CVE-2026-142819"
],
"database_specific": {
"cwe_ids": [],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-12-03T04:18:17Z",
"severity": null
},
"details": "In the Linux kernel, the following vulnerability has been resolved:\n\nkgdb: Fix buffer overflow in the qRcmd packet handler\n\ngdb_cmd_query() decodes the hex payload of a qRcmd packet (the GDB\n\"monitor\" command passthrough to kdb) into remcom_out_buffer and hands\nit to kdb_parse(). It sizes the decode with strlen() of the payload:\n\n\tint len = strlen(remcom_in_buffer + 6);\n\t...\n\tkgdb_hex2mem(remcom_in_buffer + 6,\n\t\t remcom_out_buffer, len);\n\tlen = len / 2;\n\nkgdb_hex2mem() takes count as the number of bytes to produce and\ndecodes them in place at buf, reading and writing 2 * count bytes\nthere. len here is the hex character count, twice the decoded size,\nso the decode runs over 2 * len bytes at remcom_in_buffer + 6, off\nthe end of the buffer. On x86 BUFMAX is 1024, so a 256-byte monitor\ncommand (512 hex characters) overruns remcom_in_buffer during the\nin-place decode:\n\n BUG: KASAN: global-out-of-bounds in kgdb_hex2mem+0x131/0x160\n Read of size 1 at addr ffffffff8765ef05 by task sh/1\n ...\n kgdb_hex2mem+0x131/0x160\n gdb_serial_stub+0x16d4/0x3170\n kgdb_cpu_enter+0xb68/0x1520\n ...\n The buggy address belongs to the variable:\n remcom_in_buffer+0x405/0x420\n\nHalve len before the call so kgdb_hex2mem() gets the decoded byte count.\nIt then reads the len hex characters already in remcom_in_buffer and\nwrites len / 2 bytes, all inside the buffer, and remcom_out_buffer holds\nthe same command as before.",
"id": "GHSA-4hhh-7xh3-27vr",
"modified": "2026-12-03T06:30:35Z",
"published": "2026-12-03T06:30:34Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-142819"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/3da6acf8387e699f142d0bb723e921f2cca529da"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/45810081364b5fa468e6c8a33ecd9aa55a2ae90a"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/5073e10eb2bdcb3fe614abbfdefe2e41320222d6"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/61e7228c532950643d9ccaa2274d30c61a00d376"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/77f35ee4cf4e5981c3bd0fe403cc2b1db332aa4b"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/9b11cd179e854833089bc42e7cf57c7ddd1cca2b"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/9ca9e8c857b55a081d5a1f8039b27cbb4d646b49"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/abbe947c900683a5adef2829413f5beb925fd8b9"
}
],
"schema_version": "1.4.0",
"severity": []
}
Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline
Sightings and recorded dates, grouped by day · UTC
How durations are calculated
Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.
Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.
Loading timeline…
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.