CVE-2025-21973

Source
https://nvd.nist.gov/vuln/detail/CVE-2025-21973
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-21973.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-21973
Downstream
Related
Published
2025-04-01T15:47:05Z
Modified
2025-10-10T07:55:01.838957Z
Summary
eth: bnxt: fix kernel panic in the bnxt_get_queue_stats{rx | tx}
Details

In the Linux kernel, the following vulnerability has been resolved:

eth: bnxt: fix kernel panic in the bnxtgetqueue_stats{rx | tx}

When qstats-get operation is executed, callbacks of netdevstatsops are called. The bnxtgetqueuestats{rx | tx} collect per-queue stats from swstats in the rings. But {rx | tx | cp}_ring are allocated when the interface is up. So, these rings are not allocated when the interface is down.

The qstats-get is allowed even if the interface is down. However, the bnxtgetqueuestats{rx | tx}() accesses cpring and tx_ring without null check. So, it needs to avoid accessing rings if the interface is down.

Reproducer: ip link set $interface down ./cli.py --spec netdev.yaml --dump qstats-get OR ip link set $interface down python ./stats.py

Splat looks like: BUG: kernel NULL pointer dereference, address: 0000000000000000 #PF: supervisor read access in kernel mode #PF: errorcode(0x0000) - not-present page PGD 1680fa067 P4D 1680fa067 PUD 16be3b067 PMD 0 Oops: Oops: 0000 [#1] PREEMPT SMP NOPTI CPU: 0 UID: 0 PID: 1495 Comm: python3 Not tainted 6.14.0-rc4+ #32 5cd0f999d5a15c574ac72b3e4b907341 Hardware name: ASUS System Product Name/PRIME Z690-P D4, BIOS 0603 11/01/2021 RIP: 0010:bnxtgetqueuestatsrx+0xf/0x70 [bnxten] Code: c6 87 b5 18 00 00 02 eb a2 66 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 0f 1f 44 01 RSP: 0018:ffffabef43cdb7e0 EFLAGS: 00010282 RAX: 0000000000000000 RBX: ffffffffc04c8710 RCX: 0000000000000000 RDX: ffffabef43cdb858 RSI: 0000000000000000 RDI: ffff8d504e850000 RBP: ffff8d506c9f9c00 R08: 0000000000000004 R09: ffff8d506bcd901c R10: 0000000000000015 R11: ffff8d506bcd9000 R12: 0000000000000000 R13: ffffabef43cdb8c0 R14: ffff8d504e850000 R15: 0000000000000000 FS: 00007f2c5462b080(0000) GS:ffff8d575f600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 0000000167fd0000 CR4: 00000000007506f0 PKRU: 55555554 Call Trace: <TASK> ? _die+0x20/0x70 ? pagefaultoops+0x15a/0x460 ? schedbalancefindsrcgroup+0x58d/0xd10 ? excpagefault+0x6e/0x180 ? asmexcpagefault+0x22/0x30 ? bnxtgetqueuestatsrx+0xf/0x70 [bnxten cdd546fd48563c280cfd30e9647efa420db07bf1] netdevnlstatsbynetdev+0x2b1/0x4e0 ? xasload+0x9/0xb0 ? xasfind+0x183/0x1d0 ? xafind+0x8b/0xe0 netdevnlqstatsgetdumpit+0xbf/0x1e0 genldumpit+0x31/0x90 netlinkdump+0x1a8/0x360

References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
af7b3b4adda592cb49e202f3617454d5dda4c5b5
Fixed
f059a0fd733078c3832fd0f3a3037aa5975d3d36
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
af7b3b4adda592cb49e202f3617454d5dda4c5b5
Fixed
adb830085f0fc3a09a0fc8b64fed2e7c8d244665
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
af7b3b4adda592cb49e202f3617454d5dda4c5b5
Fixed
f09af5fdfbd9b0fcee73aab1116904c53b199e97

Affected versions

v6.*

v6.10
v6.10-rc1
v6.10-rc2
v6.10-rc3
v6.10-rc4
v6.10-rc5
v6.10-rc6
v6.10-rc7
v6.11
v6.11-rc1
v6.11-rc2
v6.11-rc3
v6.11-rc4
v6.11-rc5
v6.11-rc6
v6.11-rc7
v6.12
v6.12-rc1
v6.12-rc2
v6.12-rc3
v6.12-rc4
v6.12-rc5
v6.12-rc6
v6.12-rc7
v6.12.1
v6.12.10
v6.12.11
v6.12.12
v6.12.13
v6.12.14
v6.12.15
v6.12.16
v6.12.17
v6.12.18
v6.12.19
v6.12.2
v6.12.3
v6.12.4
v6.12.5
v6.12.6
v6.12.7
v6.12.8
v6.12.9
v6.13
v6.13-rc1
v6.13-rc2
v6.13-rc3
v6.13-rc4
v6.13-rc5
v6.13-rc6
v6.13-rc7
v6.13.1
v6.13.2
v6.13.3
v6.13.4
v6.13.5
v6.13.6
v6.13.7
v6.14-rc1
v6.14-rc2
v6.14-rc3
v6.14-rc4
v6.14-rc5
v6.8
v6.9
v6.9-rc1
v6.9-rc2
v6.9-rc3
v6.9-rc4
v6.9-rc5
v6.9-rc6
v6.9-rc7

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.9.0
Fixed
6.12.20
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.13.8