{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-142819","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-12-03T03:10:28.331Z","datePublished":"2026-12-03T03:20:38.940Z","dateUpdated":"2026-12-03T03:20:38.940Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-12-03T03:20:38.940Z"},"descriptions":[{"lang":"en","value":"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."}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/debug/gdbstub.c"],"versions":[{"version":"a0de055cf61338549b13079a5677ef2e1b6472ef","lessThan":"45810081364b5fa468e6c8a33ecd9aa55a2ae90a","status":"affected","versionType":"git"},{"version":"a0de055cf61338549b13079a5677ef2e1b6472ef","lessThan":"abbe947c900683a5adef2829413f5beb925fd8b9","status":"affected","versionType":"git"},{"version":"a0de055cf61338549b13079a5677ef2e1b6472ef","lessThan":"9b11cd179e854833089bc42e7cf57c7ddd1cca2b","status":"affected","versionType":"git"},{"version":"a0de055cf61338549b13079a5677ef2e1b6472ef","lessThan":"5073e10eb2bdcb3fe614abbfdefe2e41320222d6","status":"affected","versionType":"git"},{"version":"a0de055cf61338549b13079a5677ef2e1b6472ef","lessThan":"77f35ee4cf4e5981c3bd0fe403cc2b1db332aa4b","status":"affected","versionType":"git"},{"version":"a0de055cf61338549b13079a5677ef2e1b6472ef","lessThan":"61e7228c532950643d9ccaa2274d30c61a00d376","status":"affected","versionType":"git"},{"version":"a0de055cf61338549b13079a5677ef2e1b6472ef","lessThan":"3da6acf8387e699f142d0bb723e921f2cca529da","status":"affected","versionType":"git"},{"version":"a0de055cf61338549b13079a5677ef2e1b6472ef","lessThan":"9ca9e8c857b55a081d5a1f8039b27cbb4d646b49","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/debug/gdbstub.c"],"versions":[{"version":"2.6.35","status":"affected"},{"version":"0","lessThan":"2.6.35","status":"unaffected","versionType":"semver"},{"version":"5.10.275","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.226","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.193","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.163","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.117","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.63","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.4","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.35","versionEndExcluding":"5.10.275"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.35","versionEndExcluding":"5.15.226"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.35","versionEndExcluding":"6.1.193"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.35","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.35","versionEndExcluding":"6.12.117"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.35","versionEndExcluding":"6.18.63"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.35","versionEndExcluding":"7.3.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.35","versionEndExcluding":"7.4-rc1"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/45810081364b5fa468e6c8a33ecd9aa55a2ae90a"},{"url":"https://git.kernel.org/stable/c/abbe947c900683a5adef2829413f5beb925fd8b9"},{"url":"https://git.kernel.org/stable/c/9b11cd179e854833089bc42e7cf57c7ddd1cca2b"},{"url":"https://git.kernel.org/stable/c/5073e10eb2bdcb3fe614abbfdefe2e41320222d6"},{"url":"https://git.kernel.org/stable/c/77f35ee4cf4e5981c3bd0fe403cc2b1db332aa4b"},{"url":"https://git.kernel.org/stable/c/61e7228c532950643d9ccaa2274d30c61a00d376"},{"url":"https://git.kernel.org/stable/c/3da6acf8387e699f142d0bb723e921f2cca529da"},{"url":"https://git.kernel.org/stable/c/9ca9e8c857b55a081d5a1f8039b27cbb4d646b49"}],"title":"kgdb: Fix buffer overflow in the qRcmd packet handler","x_generator":{"engine":"bippy-1.2.0"}}}}