<?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://db.gcve.eu/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-12-04T19:18:27.353515+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>info@gcve.eu</email>
  </author>
  <link href="https://db.gcve.eu" 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://db.gcve.eu/vuln/cve-2026-138869</id>
    <title>CVE-2026-138869 — md: don't hand out the array before md_alloc() has added mddev-&gt;kobj</title>
    <updated>2026-12-04T19:18:27.355269+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>md: don't hand out the array before md_alloc() has added mddev-&gt;kobj</p>
<p>md_alloc() publishes the gendisk before it is done setting the mddev up:</p>
<p>disk-&gt;private_data = mddev;
	...
	error = add_disk(disk);
	if (error)
		goto out_put_disk;</p>
<p>kobject_init(&amp;mddev-&gt;kobj, &amp;md_ktype);
	error = kobject_add(&amp;mddev-&gt;kobj, &amp;disk_to_dev(disk)-&gt;kobj, "%s", "md");</p>
<p>add_disk() makes /dev/mdN openable.  mddev comes from mddev_alloc() and
is zeroed, so anything that gets in between add_disk() and kobject_add()
sees an mddev-&gt;kobj that has never been through kobject_init() - no
ktype, no kref, state_initialized clear.</p>
<p>syzbot opens the array in that window and issues ADD_NEW_DISK:</p>
<p>kobject: '(null)' (ffff8880120640f0): is not initialized, yet
  kobject_get() is being called.
  WARNING: lib/kobject.c:642 at kobject_add_internal+0xea/0xcd0 lib/kobject.c:225
   kobject_add_varg lib/kobject.c:374 [inline]
   kobject_add+0x163/0x240 lib/kobject.c:426
   bind_rdev_to_array+0x80c/0xdd0 drivers/md/md.c:2621
   md_add_new_disk+0xe3b/0x1850 drivers/md/md.c:7684
   md_ioctl+0x200a/0x2610 drivers/md/md.c:8499</p>
<p>bind_rdev_to_array() is not the only way in.  md_run() calls
sysfs_create_group(&amp;mddev-&gt;kobj, &amp;md_redundancy_group), and
internal_create_group() has its own WARN_ON(!kobj-&gt;sd), so RUN_ARRAY in
the same window warns too.</p>
<p>Every ioctl that can reach mddev-&gt;kobj runs under reconfig_mutex, so
hold it across add_disk() and kobject_add(…</p></div>
    </content>
    <link href="https://db.gcve.eu/vuln/cve-2026-138869"/>
  </entry>
</feed>
