<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
  <channel>
    <title>Most recent entries from all</title>
    <link>https://db.gcve.eu</link>
    <description>Contains only the most 10 recent entries.</description>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <generator>python-feedgen</generator>
    <language>en</language>
    <lastBuildDate>Sat, 05 Dec 2026 12:36:52 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-142820 — kgdb: Fix buffer overflow in the 'm' packet handler</title>
      <link>https://db.gcve.eu/vuln/cve-2026-142820</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Linux&lt;/p&gt;
&lt;p&gt;In the Linux kernel, the following vulnerability has been resolved:&lt;/p&gt;
&lt;p&gt;kgdb: Fix buffer overflow in the &amp;#39;m&amp;#39; packet handler&lt;/p&gt;
&lt;p&gt;gdb_cmd_memread() passes the length of the &amp;#39;m&amp;#39; 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.&lt;/p&gt;
&lt;p&gt;On x86 BUFMAX is 1024, so a read of 512 bytes overruns by the single
byte that terminates the hex string:&lt;/p&gt;
&lt;p&gt;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&lt;/p&gt;
&lt;p&gt;Bounds check the length before the hex encoding:&lt;/p&gt;
&lt;p&gt;if (length &amp;gt; (BUFMAX - 1) / 2) {
			error_packet(remcom_out_buffer, -EINVAL);
			return;
		}&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Linux&lt;/p&gt;
&lt;p&gt;In the Linux kernel, the following vulnerability has been resolved:&lt;/p&gt;
&lt;p&gt;kgdb: Fix buffer overflow in the &amp;#39;m&amp;#39; packet handler&lt;/p&gt;
&lt;p&gt;gdb_cmd_memread() passes the length of the &amp;#39;m&amp;#39; 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.&lt;/p&gt;
&lt;p&gt;On x86 BUFMAX is 1024, so a read of 512 bytes overruns by the single
byte that terminates the hex string:&lt;/p&gt;
&lt;p&gt;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&lt;/p&gt;
&lt;p&gt;Bounds check the length before the hex encoding:&lt;/p&gt;
&lt;p&gt;if (length &amp;gt; (BUFMAX - 1) / 2) {
			error_packet(remcom_out_buffer, -EINVAL);
			return;
		}&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/cve-2026-142820</guid>
    </item>
  </channel>
</rss>
