<?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://vulnerability.circl.lu</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>Tue, 29 Sep 2026 21:27:36 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-64293 — iommufd: Use sizeof(*hdr) instead of sizeof(hdr) in veventq read</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2026-64293</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;iommufd: Use sizeof(*hdr) instead of sizeof(hdr) in veventq read&lt;/p&gt;
&lt;p&gt;The bound-check in iommufd_veventq_fops_read() for the normal vEVENT
path uses sizeof(hdr) where the surrounding code uses sizeof(*hdr):&lt;/p&gt;
&lt;p&gt;if (!vevent_for_lost_events_header(cur) &amp;amp;&amp;amp;
	    sizeof(hdr) + cur-&amp;gt;data_len &amp;gt; count - done) {&lt;/p&gt;
&lt;p&gt;hdr is declared as struct iommufd_vevent_header *, so sizeof(hdr)
evaluates to the size of the pointer.  Surrounding code uses
sizeof(*hdr) consistently:&lt;/p&gt;
&lt;p&gt;if (done &amp;gt;= count || sizeof(*hdr) &amp;gt; count - done) {
	...
	if (copy_to_user(buf + done, hdr, sizeof(*hdr))) {
	...
	done += sizeof(*hdr);&lt;/p&gt;
&lt;p&gt;struct iommufd_vevent_header is currently 8 bytes (two __u32 fields,
flags and sequence), so on 64-bit (sizeof(void *) == 8) the two
expressions happen to be equal and the check works as intended.&lt;/p&gt;
&lt;p&gt;On 32-bit (sizeof(void *) == 4) the check under-counts the header by
4 bytes: a vEVENT whose data_len causes 8 + cur-&amp;gt;data_len to exceed
count - done while 4 + cur-&amp;gt;data_len does not will pass the check,
then the loop will copy_to_user 8 bytes of header followed by data_len
bytes of payload, writing past the user-supplied buffer.&lt;/p&gt;
&lt;p&gt;It is also a latent bug for any future expansion of struct
iommufd_vevent_header beyond sizeof(void *) on 64-bit; the check
should not depend on the type happening to match the host pointer
width.&lt;/p&gt;
&lt;p&gt;Use sizeof(*hdr) to match the rest of the function and the actual
amount that will be copied.&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;iommufd: Use sizeof(*hdr) instead of sizeof(hdr) in veventq read&lt;/p&gt;
&lt;p&gt;The bound-check in iommufd_veventq_fops_read() for the normal vEVENT
path uses sizeof(hdr) where the surrounding code uses sizeof(*hdr):&lt;/p&gt;
&lt;p&gt;if (!vevent_for_lost_events_header(cur) &amp;amp;&amp;amp;
	    sizeof(hdr) + cur-&amp;gt;data_len &amp;gt; count - done) {&lt;/p&gt;
&lt;p&gt;hdr is declared as struct iommufd_vevent_header *, so sizeof(hdr)
evaluates to the size of the pointer.  Surrounding code uses
sizeof(*hdr) consistently:&lt;/p&gt;
&lt;p&gt;if (done &amp;gt;= count || sizeof(*hdr) &amp;gt; count - done) {
	...
	if (copy_to_user(buf + done, hdr, sizeof(*hdr))) {
	...
	done += sizeof(*hdr);&lt;/p&gt;
&lt;p&gt;struct iommufd_vevent_header is currently 8 bytes (two __u32 fields,
flags and sequence), so on 64-bit (sizeof(void *) == 8) the two
expressions happen to be equal and the check works as intended.&lt;/p&gt;
&lt;p&gt;On 32-bit (sizeof(void *) == 4) the check under-counts the header by
4 bytes: a vEVENT whose data_len causes 8 + cur-&amp;gt;data_len to exceed
count - done while 4 + cur-&amp;gt;data_len does not will pass the check,
then the loop will copy_to_user 8 bytes of header followed by data_len
bytes of payload, writing past the user-supplied buffer.&lt;/p&gt;
&lt;p&gt;It is also a latent bug for any future expansion of struct
iommufd_vevent_header beyond sizeof(void *) on 64-bit; the check
should not depend on the type happening to match the host pointer
width.&lt;/p&gt;
&lt;p&gt;Use sizeof(*hdr) to match the rest of the function and the actual
amount that will be copied.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2026-64293</guid>
    </item>
  </channel>
</rss>
