CVE-2026-139253: net/mlx5e: Fix NULL deref in PTP TX timestamp recovery warn
In the Linux kernel, the following vulnerability has been resolved:
net/mlx5e: Fix NULL deref in PTP TX timestamp recovery warn
PTP SQs are allocated via mlx5eptpalloctxqsq(), which never sets sq->channel. The excessive port timestamp delta recovery path incorrectly used sq->channel->netdev for netdevwarn(), causing a NULL pointer dereference. Use sq->netdev instead.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In the excessive port timestamp delta recovery path, use sq->netdev instead of sq->channel->netdev for netdev_warn().
Event History
Frequently Asked Questions
Which systems are exposed to this NULL pointer dereference?
Systems using the Linux kernel mlx5e driver with PTP transmit timestamp queues are affected when the excessive port timestamp delta recovery path is reached. The vulnerable condition involves PTP SQs allocated by mlx5e_ptp_alloc_txqsq(), where sq->channel is not set.
What condition triggers the issue?
The issue is triggered when excessive port timestamp delta recovery attempts to issue a netdev warning. That path dereferences sq->channel->netdev even though sq->channel is NULL for the affected PTP transmit queues.
How can the fix be identified?
The corrected code uses sq->netdev for the warning instead of sq->channel->netdev. The provided stable-kernel references identify fixes at commits 2af973e5e1eb5d7445f5aeae5661c70df2882ad2 and 0df412012a26389582b120844d098e1e961f10a6.