<?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-29T23:38:39.866160+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-2022-50002</id>
    <title>CVE-2022-50002 — net/mlx5: LAG, fix logic over MLX5_LAG_FLAG_NDEVS_READY</title>
    <updated>2026-09-29T23:38:41.247075+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>net/mlx5: LAG, fix logic over MLX5_LAG_FLAG_NDEVS_READY</p>
<p>Only set MLX5_LAG_FLAG_NDEVS_READY if both netdevices are registered.
Doing so guarantees that both ldev-&gt;pf[MLX5_LAG_P0].dev and
ldev-&gt;pf[MLX5_LAG_P1].dev have valid pointers when
MLX5_LAG_FLAG_NDEVS_READY is set.</p>
<p>The core issue is asymmetry in setting MLX5_LAG_FLAG_NDEVS_READY and
clearing it. Setting it is done wrongly when both
ldev-&gt;pf[MLX5_LAG_P0].dev and ldev-&gt;pf[MLX5_LAG_P1].dev are set;
clearing it is done right when either of ldev-&gt;pf[i].netdev is cleared.</p>
<p>Consider the following scenario:
1. PF0 loads and sets ldev-&gt;pf[MLX5_LAG_P0].dev to a valid pointer
2. PF1 loads and sets both ldev-&gt;pf[MLX5_LAG_P1].dev and
   ldev-&gt;pf[MLX5_LAG_P1].netdev with valid pointers. This results in
   MLX5_LAG_FLAG_NDEVS_READY is set.
3. PF0 is unloaded before setting dev-&gt;pf[MLX5_LAG_P0].netdev.
   MLX5_LAG_FLAG_NDEVS_READY remains set.</p>
<p>Further execution of mlx5_do_bond() will result in null pointer
dereference when calling mlx5_lag_is_multipath()</p>
<p>This patch fixes the following call trace actually encountered:</p>
<p>[ 1293.475195] BUG: kernel NULL pointer dereference, address: 00000000000009a8
[ 1293.478756] #PF: supervisor read access in kernel mode
[ 1293.481320] #PF: error_code(0x0000) - not-present page
[ 1293.483686] PGD 0 P4D 0
[ 1293.484434] Oops: 0000 [#1] SMP PTI
[ 1293.485377] CPU: 1 PID: 23690 Comm: kworker/u16:2 Not tainted 5.18.0-rc5_for_upstream_mi…</p></div>
    </content>
    <link href="https://vulnerability.circl.lu/vuln/cve-2022-50002"/>
  </entry>
</feed>
