<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>https://cve.radiocsirt.org/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-10-09T06:13:41.154682+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>csirt@opendfir.org</email>
  </author>
  <link href="https://cve.radiocsirt.org" rel="alternate"/>
  <generator uri="https://lkiesow.github.io/python-feedgen" version="1.0.0">python-feedgen</generator>
  <subtitle>Contains only the most 10 recent entries.</subtitle>
  <entry>
    <id>https://cve.radiocsirt.org/vuln/cve-2025-22003</id>
    <title>CVE-2025-22003 — can: ucan: fix out of bound read in strscpy() source</title>
    <updated>2026-10-09T06:13:41.156214+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> Linux</p>
<p>In the Linux kernel, the following vulnerability has been resolved:</p>
<p>can: ucan: fix out of bound read in strscpy() source</p>
<p>Commit 7fdaf8966aae ("can: ucan: use strscpy() to instead of strncpy()")
unintentionally introduced a one byte out of bound read on strscpy()'s
source argument (which is kind of ironic knowing that strscpy() is meant
to be a more secure alternative :)).</p>
<p>Let's consider below buffers:</p>
<p>dest[len + 1]; /* will be NUL terminated */
  src[len]; /* may not be NUL terminated */</p>
<p>When doing:</p>
<p>strncpy(dest, src, len);
  dest[len] = '\0';</p>
<p>strncpy() will read up to len bytes from src.</p>
<p>On the other hand:</p>
<p>strscpy(dest, src, len + 1);</p>
<p>will read up to len + 1 bytes from src, that is to say, an out of bound
read of one byte will occur on src if it is not NUL terminated. Note
that the src[len] byte is never copied, but strscpy() still needs to
read it to check whether a truncation occurred or not.</p>
<p>This exact pattern happened in ucan.</p>
<p>The root cause is that the source is not NUL terminated. Instead of
doing a copy in a local buffer, directly NUL terminate it as soon as
usb_control_msg() returns. With this, the local firmware_str[] variable
can be removed.</p>
<p>On top of this do a couple refactors:</p>
<p>- ucan_ctl_payload-&gt;raw is only used for the firmware string, so
    rename it to ucan_ctl_payload-&gt;fw_str and change its type from u8 to
    char.</p>
<p>- ucan_device_request_in() is only used to retrieve the firmware
    string, so rename it to ucan_get_fw_str() and re…</p></div>
    </content>
    <link href="https://cve.radiocsirt.org/vuln/cve-2025-22003"/>
  </entry>
</feed>
