<?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://vulnerability.circl.lu/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-09-29T14:28:54.708565+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>info@circl.lu</email>
  </author>
  <link href="https://vulnerability.circl.lu" 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://vulnerability.circl.lu/vuln/cve-2026-90001</id>
    <title>CVE-2026-90001 — HID: bpf: serialize device reference release in struct_ops destroy path</title>
    <updated>2026-09-29T14:28:54.724594+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>HID: bpf: serialize device reference release in struct_ops destroy path</p>
<p>__hid_bpf_ops_destroy_device() and hid_bpf_unreg() can race on the
same registration reference, double-putting struct hid_device and
freeing it while hid_destroy_device() still uses it.  Serialize the
remove/NULL decision under hdev-&gt;bpf.prog_list_lock so exactly one
path releases each registration reference: unreg re-checks ops-&gt;hdev
under the lock and returns without putting when the destroy path
already cleared it; all put_device() calls happen after the lock is
dropped, which is safe because a concurrent unreg then observes
ops-&gt;hdev == NULL under the lock.</p>
<p>Background: each successful attach (hid_bpf_ops_reg) acquires one
device reference (hid_get_device()).  Two paths can release it:</p>
<p>- device destruction: hid_destroy_device() -&gt; hid_bpf_destroy_device()
  -&gt; __hid_bpf_ops_destroy_device(), which walks hdev-&gt;bpf.prog_list
  under rcu_read_lock() and drops one reference per attached program;
- BPF link release: bpf map delete (no BPF_F_LINK) synchronously calls
  st_ops-&gt;unreg() -&gt; hid_bpf_unreg(), which drops the reference for
  its own registration.</p>
<p>The coordination handshake (e-&gt;hdev = NULL on the destroy side vs
"if (!hdev) return" on the unreg side) is a TOCTOU check: the two
paths run under different lock domains (rcu_read_lock vs
prog_list_lock), so a concurrent unreg can read ops-&gt;hdev as
non-NULL, block on prog_list_lock…</p></div>
    </content>
    <link href="https://vulnerability.circl.lu/vuln/cve-2026-90001"/>
  </entry>
</feed>
