CVE-2022-49904

net, neigh: Fix null-ptr-deref in neigh_table_clear()

MEDIUM
5.5
CVSS Score
Published: May 1, 2025 at 02:10 PM UTC
Updated: June 17, 2026 at 05:19 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

Description

In the Linux kernel, the following vulnerability has been resolved: net, neigh: Fix null-ptr-deref in neigh_table_clear() When IPv6 module gets initialized but hits an error in the middle, kenel panic with: KASAN: null-ptr-deref in range [0x0000000000000598-0x000000000000059f] CPU: 1 PID: 361 Comm: insmod Hardware name: QEMU Standard PC (i440FX + PIIX, 1996) RIP: 0010:__neigh_ifdown.isra.0+0x24b/0x370 RSP: 0018:ffff888012677908 EFLAGS: 00000202 ... Call Trace: <TASK> neigh_table_clear+0x94/0x2d0 ndisc_cleanup+0x27/0x40 [ipv6] inet6_init+0x21c/0x2cb [ipv6] do_one_initcall+0xd3/0x4d0 do_init_module+0x1ae/0x670 ... Kernel panic - not syncing: Fatal exception When ipv6 initialization fails, it will try to cleanup and calls: neigh_table_clear() neigh_ifdown(tbl, NULL) pneigh_queue_purge(&tbl->proxy_queue, dev_net(dev == NULL)) # dev_net(NULL) triggers null-ptr-deref. Fix it by passing NULL to pneigh_queue_purge() in neigh_ifdown() if dev is NULL, to make kernel not panic immediately.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v ≥ 5.19.74.14.292 ≤ v < 4.14.2994.19.257 ≤ v < 4.19.2655.10.141 ≤ v < 5.10.1545.15.65 ≤ v < 5.15.785.19.7 ≤ v < 5.205.19.7 ≤ v < 6.0.85.4.212 ≤ v < 5.4.2246.0 ≤ v < 6.0.86.0 ≤ v < 6.12dd5ed474115150d8175825bc3b56c6385c3a83b4.14.2924.19.2575.10.1415.15.655.19.75.4.21251be9dd391fd25872b95708a0250f2f7722d2d8e5fdce1ae744dee43c9181fd63c9c0db4f777f26.1 rc16.1 rc26.1 rc366ba215cb51323e4e55e38fd5f250e0fae0cbc949bbaed571c4bf1b62ac8703cb359dc090efc3455c35adafe42bd6c3bf2aca0a3f523dabc38fc23c8db6fa03d80ab076238fc806c9925d1f8b9639d1b
Vendor states this is fixed in 0d38b4ca6679e72860ff8730e79bb99d0e9fa3b0 (fixed)
Vendor states this is fixed in 1c89642e7f2b7ecc9635610653f5c2f0276c0051 (fixed)
Vendor states this is fixed in 2b45d6d0c41cb9593868e476681efb1aae5078a1 (fixed)
Vendor states this is fixed in a99a8ec4c62180c889482a2ff6465033e0743458 (fixed)
Vendor states this is fixed in b49f6b2f21f543d4dc88fb7b1ec2adccb822f27c (fixed)
Vendor states this is fixed in b736592de2aa53aee2d48d6b129bc0c892007bbe (fixed)
Vendor states this is fixed in f8017317cb0b279b8ab98b0f3901a2e0ac880dad (fixed)
Vendor states this is fixed in 4.14.299 (unaffected)
Vendor states this is fixed in 4.19.265 (unaffected)
Vendor states this is fixed in 5.10.154 (unaffected)
Vendor states this is fixed in 5.15.78 (unaffected)
Affected range stops below 5.20, so it looks safe — our inference, not a vendor statement
Vendor states this is fixed in 5.4.224 (unaffected)
Vendor states this is fixed in 6.0 (unaffected)
Vendor states this is fixed in 6.0.8 (unaffected)
Vendor states this is fixed in 6.1 (unaffected)

References (7)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/0d38b4ca6679e72860ff8730e79bb99d0e9fa3b0
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/1c89642e7f2b7ecc9635610653f5c2f0276c0051
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/2b45d6d0c41cb9593868e476681efb1aae5078a1
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/a99a8ec4c62180c889482a2ff6465033e0743458
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/b49f6b2f21f543d4dc88fb7b1ec2adccb822f27c
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/b736592de2aa53aee2d48d6b129bc0c892007bbe
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/f8017317cb0b279b8ab98b0f3901a2e0ac880dad

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

5.5MEDIUMCISA-ADP
Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-476

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card