CVE-2023-53105
net/mlx5e: Fix cleanup null-ptr deref on encap lock
Mitigation
- No fix listed yet: follow the vendor advisory.
Who should check
- Anyone running Linux >= 04de7dda7394fa9c2b0fc9cec65661d9b4f0d04d, < b7350f8dbe0c2a1d4d3ad7c35b610abd3cb91750; >= 04de7dda7394fa9c2b0fc9cec65661d9b4f0d04d, < 01fdaea410787fe372daeaeda93a29ed0606d334; >= 04de7dda7394fa9c2b0fc9cec65661d9b4f0d04d, < c9668f0b1d28570327dbba189f2c61f6f9e43ae7
- Anyone running Linux 5.0
Vulnerability facts
- Affected
- Linux >= 04de7dda7394fa9c2b0fc9cec65661d9b4f0d04d, < b7350f8dbe0c2a1d4d3ad7c35b610abd3cb91750; >= 04de7dda7394fa9c2b0fc9cec65661d9b4f0d04d, < 01fdaea410787fe372daeaeda93a29ed0606d334; >= 04de7dda7394fa9c2b0fc9cec65661d9b4f0d04d, < c9668f0b1d28570327dbba189f2c61f6f9e43ae7; Linux 5.0
- Fixed in
- Linux 01fdaea410787fe372daeaeda93a29ed0606d334
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 5.5 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 0.28% chance of exploitation in 30 days (percentile 13, 2026-11-26)
- CWE
- CWE-476
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: net/mlx5e: Fix cleanup null-ptr deref on encap lock During module is unloaded while a peer tc flow is still offloaded, first the peer uplink rep profile is changed to a nic profile, and so neigh encap lock is destroyed. Next during unload, the VF reps netdevs are unregistered which causes the original non-peer tc flow to be deleted, which deletes the peer flow. The peer flow deletion detaches the encap entry and try to take the already destroyed encap lock, causing the below trace. Fix this by clearing peer flows during tc eswitch cleanup (mlx5e_tc_esw_cleanup()). Relevant trace: [ 4316.837128] BUG: kernel NULL pointer dereference, address: 00000000000001d8 [ 4316.842239] RIP: 0010:__mutex_lock+0xb5/0xc40 [ 4316.851897] Call Trace: [ 4316.852481] <TASK> [ 4316.857214] mlx5e_rep_neigh_entry_release+0x93/0x790 [mlx5_core] [ 4316.858258] mlx5e_rep_encap_entry_detach+0xa7/0xf0 [mlx5_core] [ 4316.859134] mlx5e_encap_dealloc+0xa3/0xf0 [mlx5_core] [ 4316.859867] clean_encap_dests.part.0+0x5c/0xe0 [mlx5_core] [ 4316.860605] mlx5e_tc_del_fdb_flow+0x32a/0x810 [mlx5_core] [ 4316.862609] __mlx5e_tc_del_fdb_peer_flow+0x1a2/0x250 [mlx5_core] [ 4316.863394] mlx5e_tc_del_flow+0x(/0x630 [mlx5_core] [ 4316.864090] mlx5e_flow_put+0x5f/0x100 [mlx5_core] [ 4316.864771] mlx5e_delete_flower+0x4de/0xa40 [mlx5_core] [ 4316.865486] tc_setup_cb_reoffload+0x20/0x80 [ 4316.865905] fl_reoffload+0x47c/0x510 [cls_flower] [ 4316.869181] tcf_block_playback_offloads+0x91/0x1d0 [ 4316.869649] tcf_block_unbind+0xe7/0x1b0 [ 4316.870049] tcf_block_offload_cmd.isra.0+0x1ee/0x270 [ 4316.879266] tcf_block_offload_unbind+0x61/0xa0 [ 4316.879711] __tcf_block_put+0xa4/0x310
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 04de7dda7394fa9c2b0fc9cec65661d9b4f0d04d, < b7350f8dbe0c2a1d4d3ad7c35b610abd3cb91750; >= 04de7dda7394fa9c2b0fc9cec65661d9b4f0d04d, < 01fdaea410787fe372daeaeda93a29ed0606d334; >= 04de7dda7394fa9c2b0fc9cec65661d9b4f0d04d, < c9668f0b1d28570327dbba189f2c61f6f9e43ae7 | — | cvelist |
| Linux | 5.0 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2023-53105. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2023-53105.md Affected: Linux >= 04de7dda7394fa9c2b0fc9cec65661d9b4f0d04d, < b7350f8dbe0c2a1d4d3ad7c35b610abd3cb91750; >= 04de7dda7394fa9c2b0fc9cec65661d9b4f0d04d, < 01fdaea410787fe372daeaeda93a29ed0606d334; >= 04de7dda7394fa9c2b0fc9cec65661d9b4f0d04d, < c9668f0b1d28570327dbba189f2c61f6f9e43ae7; Linux 5.0 Fixed in: Linux 01fdaea410787fe372daeaeda93a29ed0606d334 Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
FAQ
Is CVE-2023-53105 being exploited?
There is no confirmed exploitation: CVE-2023-53105 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.28% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2023-53105?
Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2023-53105?
Linux >= 04de7dda7394fa9c2b0fc9cec65661d9b4f0d04d, < b7350f8dbe0c2a1d4d3ad7c35b610abd3cb91750; >= 04de7dda7394fa9c2b0fc9cec65661d9b4f0d04d, < 01fdaea410787fe372daeaeda93a29ed0606d334; >= 04de7dda7394fa9c2b0fc9cec65661d9b4f0d04d, < c9668f0b1d28570327dbba189f2c61f6f9e43ae7; Linux 5.0.
Is there a fix for CVE-2023-53105?
Yes. Fixed in Linux 01fdaea410787fe372daeaeda93a29ed0606d334. No fix listed yet: follow the vendor advisory.
How do I check if I'm affected by CVE-2023-53105?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.