CVE-2025-38440 Information
Description
In the Linux kernel the following vulnerability has been resolved:
net/mlx5e: Fix race between DIM disable and net_dim()
There’s a race between disabling DIM and NAPI callbacks using the dim pointer on the RQ or SQ.
If NAPI checks the DIM state bit and sees it still set it assumes
rq->dim or sq->dim is valid. But if DIM gets disabled right after
that check the pointer might already be set to NULL leading to a NULL
pointer dereference in net_dim().
Fix this by calling synchronize_net() before freeing the DIM context.
This ensures all in-progress NAPI callbacks are finished before the
pointer is cleared.
Kernel log:
BUG: kernel NULL pointer dereference address: 0000000000000000
…
RIP: 0010:net_dim+0x23/0x190
…
Call Trace:
Reference
https://git.kernel.org/stable/c/2bc6fb90486e42dd80e660ef7a40c02b2516c6d6 https://git.kernel.org/stable/c/7581afc051542e11ccf3ade68acd01b7fb1a3cde https://git.kernel.org/stable/c/eb41a264a3a576dc040ee37c3d9d6b7e2d9be968
Related CNNVD
CNNVD-202507-3291 (Published: 2025-07-25)
Share on: