Skip to content
FlawDB
Sign in

CVE-2026-142820

UNSCORED

kgdb: Fix buffer overflow in the 'm' packet handler

Mitigation

  • No fix listed yet: follow the vendor advisory.

Who should check

  • Anyone running Linux >= dc7d552705215ac50a0617fcf51bb9c736255b8e, < 45713e6218a0ae6e64a098593abaeab330ed476a; >= dc7d552705215ac50a0617fcf51bb9c736255b8e, < b6ee49b448b539bbf09f638b57bbfb76da343764; >= dc7d552705215ac50a0617fcf51bb9c736255b8e, < e4eb329621b594a18e53f40c4021a0e18492dadb; >= dc7d552705215ac50a0617fcf51bb9c736255b8e, < 17e89acda585072f5bce5852f16ddf5063c83819; >= dc7d552705215ac50a0617fcf51bb9c736255b8e, < 1397005178f69365f94457f1a402835f5e498008; >= dc7d552705215ac50a0617fcf51bb9c736255b8e, < 129119bb1c3dba3c47bc620a831355dbd1451c7b; >= dc7d552705215ac50a0617fcf51bb9c736255b8e, < 61485a6e004eaf84d5ee4d7eb27501247ce77524; >= dc7d552705215ac50a0617fcf51bb9c736255b8e, < ac0159129e2cb99a70c4b80cfbf58d03e092dc7b
  • Anyone running Linux 2.6.26

Vulnerability facts

Affected
Linux >= dc7d552705215ac50a0617fcf51bb9c736255b8e, < 45713e6218a0ae6e64a098593abaeab330ed476a; >= dc7d552705215ac50a0617fcf51bb9c736255b8e, < b6ee49b448b539bbf09f638b57bbfb76da343764; >= dc7d552705215ac50a0617fcf51bb9c736255b8e, < e4eb329621b594a18e53f40c4021a0e18492dadb; >= dc7d552705215ac50a0617fcf51bb9c736255b8e, < 17e89acda585072f5bce5852f16ddf5063c83819; >= dc7d552705215ac50a0617fcf51bb9c736255b8e, < 1397005178f69365f94457f1a402835f5e498008; >= dc7d552705215ac50a0617fcf51bb9c736255b8e, < 129119bb1c3dba3c47bc620a831355dbd1451c7b; >= dc7d552705215ac50a0617fcf51bb9c736255b8e, < 61485a6e004eaf84d5ee4d7eb27501247ce77524; >= dc7d552705215ac50a0617fcf51bb9c736255b8e, < ac0159129e2cb99a70c4b80cfbf58d03e092dc7b; Linux 2.6.26
Fixed in
Linux 45713e6218a0ae6e64a098593abaeab330ed476a, Linux 17e89acda585072f5bce5852f16ddf5063c83819, Linux 1397005178f69365f94457f1a402835f5e498008, Linux 129119bb1c3dba3c47bc620a831355dbd1451c7b, Linux 61485a6e004eaf84d5ee4d7eb27501247ce77524
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Unknown
CVSS
Not scored yet
Published
Modified

Description

In the Linux kernel, the following vulnerability has been resolved: kgdb: Fix buffer overflow in the 'm' packet handler gdb_cmd_memread() passes the length of the 'm' packet straight to kgdb_mem2hex(), which hex-encodes the reply into remcom_out_buffer[BUFMAX] without checking that the reply fits. A client on the KGDB I/O console can ask for a read of any size, and the hex encoding runs off the end of the buffer. kgdb_mem2hex() takes that length as an int count, so 2^31 truncates to a negative value and copy_from_kernel_nofault() is handed buf + count as its destination. On x86 BUFMAX is 1024, so a read of 512 bytes overruns by the single byte that terminates the hex string: BUG: KASAN: global-out-of-bounds in kgdb_mem2hex+0x1dd/0x230 Write of size 1 at addr ffffffff87651780 by task sh/1 ... The buggy address belongs to the variable: remcom_out_buffer+0x400/0x420 Bounds check the length before the hex encoding: if (length > (BUFMAX - 1) / 2) { error_packet(remcom_out_buffer, -EINVAL); return; } gdbstub_msg_write() already bounds the count it hex-encodes against BUFMAX. Reads over the limit never returned valid data, so an error reply loses nothing.

Affected and fixed versions

Package / productAffectedFixedSource
Linux>= dc7d552705215ac50a0617fcf51bb9c736255b8e, < 45713e6218a0ae6e64a098593abaeab330ed476a; >= dc7d552705215ac50a0617fcf51bb9c736255b8e, < b6ee49b448b539bbf09f638b57bbfb76da343764; >= dc7d552705215ac50a0617fcf51bb9c736255b8e, < e4eb329621b594a18e53f40c4021a0e18492dadb; >= dc7d552705215ac50a0617fcf51bb9c736255b8e, < 17e89acda585072f5bce5852f16ddf5063c83819; >= dc7d552705215ac50a0617fcf51bb9c736255b8e, < 1397005178f69365f94457f1a402835f5e498008; >= dc7d552705215ac50a0617fcf51bb9c736255b8e, < 129119bb1c3dba3c47bc620a831355dbd1451c7b; >= dc7d552705215ac50a0617fcf51bb9c736255b8e, < 61485a6e004eaf84d5ee4d7eb27501247ce77524; >= dc7d552705215ac50a0617fcf51bb9c736255b8e, < ac0159129e2cb99a70c4b80cfbf58d03e092dc7b—cvelist
Linux2.6.26—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

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

Details: https://flawdb.com/CVE-2026-142820.md
Affected: Linux >= dc7d552705215ac50a0617fcf51bb9c736255b8e, < 45713e6218a0ae6e64a098593abaeab330ed476a; >= dc7d552705215ac50a0617fcf51bb9c736255b8e, < b6ee49b448b539bbf09f638b57bbfb76da343764; >= dc7d552705215ac50a0617fcf51bb9c736255b8e, < e4eb329621b594a18e53f40c4021a0e18492dadb; >= dc7d552705215ac50a0617f…
Fixed in: Linux 45713e6218a0ae6e64a098593abaeab330ed476a, Linux 17e89acda585072f5bce5852f16ddf5063c83819, Linux 1397005178f69365f94457f1a402835f5e498008, Linux 129119bb1c3dba3c47bc620a831355dbd1451c7b, Linux 61485a6e004eaf84d5ee4d7eb27501247ce77524

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.

Technologies

References

FAQ

Is CVE-2026-142820 being exploited?

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

How serious is CVE-2026-142820?

It has no CVSS score yet. Unknown.

Which versions are affected by CVE-2026-142820?

Linux >= dc7d552705215ac50a0617fcf51bb9c736255b8e, < 45713e6218a0ae6e64a098593abaeab330ed476a; >= dc7d552705215ac50a0617fcf51bb9c736255b8e, < b6ee49b448b539bbf09f638b57bbfb76da343764; >= dc7d552705215ac50a0617fcf51bb9c736255b8e, < e4eb329621b594a18e53f40c4021a0e18492dadb; >= dc7d552705215ac50a0617fcf51bb9c736255b8e, < 17e89acda585072f5bce5852f16ddf5063c83819; >= dc7d552705215ac50a0617fcf51bb9c736255b8e, < 1397005178f69365f94457f1a402835f5e498008; >= dc7d552705215ac50a0617fcf51bb9c736255b8e, < 129119bb1c3dba3c47bc620a831355dbd1451c7b; >= dc7d552705215ac50a0617fcf51bb9c736255b8e, < 61485a6e004eaf84d5ee4d7eb27501247ce77524; >= dc7d552705215ac50a0617fcf51bb9c736255b8e, < ac0159129e2cb99a70c4b80cfbf58d03e092dc7b; Linux 2.6.26.

Is there a fix for CVE-2026-142820?

Yes. Fixed in Linux 45713e6218a0ae6e64a098593abaeab330ed476a, Linux 17e89acda585072f5bce5852f16ddf5063c83819, Linux 1397005178f69365f94457f1a402835f5e498008, Linux 129119bb1c3dba3c47bc620a831355dbd1451c7b, Linux 61485a6e004eaf84d5ee4d7eb27501247ce77524. No fix listed yet: follow the vendor advisory.

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

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.

See all
Vulnerabilities, newest first
SeverityIdentifier / vulnerabilityTechnologySignalsAge
UNSCOREDCVE-2026-142948

i2c: designware: queue only one read command for block reads

Linux kernel
UNSCOREDCVE-2026-142947

cxl/core: Skip einj_inject creation when devm_add_action_or_reset() fails

Linux kernel
UNSCOREDCVE-2026-142946

ASoC: amd: acp-es8336: Switch to use acpi_bus_get_primary_device()

Linux kernel
UNSCOREDCVE-2026-142945

ASoC: amd: acp3x-es83xx: Switch to use acpi_bus_get_primary_device()

Linux kernel
UNSCOREDCVE-2026-142944

ASoC: amd: acp-es8336: Use an owned codec device reference

Linux kernel
Sponsors