# CVE-2023-52782: net/mlx5e: Track xmit submission to PTP WQ after populating metadata map

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.30% (percentile 16, 2026-11-28)
- **CWE:** CWE-476
- **Published:** 2024-05-21T15:31:00.897Z
- **Modified:** 2026-06-17T06:43:34.250Z

## Who should check

- Anyone running Linux \>= e729382c297e2c492ff2a260aa1f23183eadae2e, \< a9d6c0c5a6bd9ca88e964f8843ea41bc085de866; \>= 3178308ad4ca38955cad684d235153d4939f1fcd, \< 4d510506b46504664eacf8a44a9e8f3e54c137b8; \>= 3178308ad4ca38955cad684d235153d4939f1fcd, \< 7e3f3ba97e6cc6fce5bf62df2ca06c8e59040167
- Anyone running Linux 6.6

## Description

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

net/mlx5e: Track xmit submission to PTP WQ after populating metadata map

Ensure the skb is available in metadata mapping to skbs before tracking the
metadata index for detecting undelivered CQEs. If the metadata index is put
in the tracking list before putting the skb in the map, the metadata index
might be used for detecting undelivered CQEs before the relevant skb is
available in the map, which can lead to a null-ptr-deref.

Log:
    general protection fault, probably for non-canonical address 0xdffffc0000000005: 0000 \[\#1\] SMP KASAN
    KASAN: null-ptr-deref in range \[0x0000000000000028-0x000000000000002f\]
    CPU: 0 PID: 1243 Comm: kworker/0:2 Not tainted 6.6.0-rc4+ \#108
    Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS rel-1.13.0-0-gf21b5a4aeb02-prebuilt.qemu.org 04/01/2014
    Workqueue: events mlx5e\_rx\_dim\_work \[mlx5\_core\]
    RIP: 0010:mlx5e\_ptp\_napi\_poll+0x9a4/0x2290 \[mlx5\_core\]
    Code: 8c 24 38 cc ff ff 4c 8d 3c c1 4c 89 f9 48 c1 e9 03 42 80 3c 31 00 0f 85 97 0f 00 00 4d 8b 3f 49 8d 7f 28 48 89 f9 48 c1 e9 03 \<42\> 80 3c 31 00 0f 85 8b 0f 00 00 49 8b 47 28 48 85 c0 0f 84 05 07
    RSP: 0018:ffff8884d3c09c88 EFLAGS: 00010206
    RAX: 0000000000000069 RBX: ffff8881160349d8 RCX: 0000000000000005
    RDX: ffffed10218f48cf RSI: 0000000000000004 RDI: 0000000000000028
    RBP: ffff888122707700 R08: 0000000000000001 R09: ffffed109a781383
    R10: 0000000000000003 R11: 0000000000000003 R12: ffff88810c7a7a40
    R13: ffff888122707700 R14: dffffc0000000000 R15: 0000000000000000
    FS:  0000000000000000(0000) GS:ffff8884d3c00000(0000) knlGS:0000000000000000
    CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
    CR2: 00007f4f878dd6e0 CR3: 000000014d108002 CR4: 0000000000370eb0
    DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
    DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
    Call Trace:
    \<IRQ\>
    ? die\_addr+0x3c/0xa0
    ? exc\_general\_protection+0x144/0x210
    ? asm\_exc\_general\_protection+0x22/0x30
    ? mlx5e\_ptp\_napi\_poll+0x9a4/0x2290 \[mlx5\_core\]
    ? mlx5e\_ptp\_napi\_poll+0x8f6/0x2290 \[mlx5\_core\]
    \_\_napi\_poll.constprop.0+0xa4/0x580
    net\_rx\_action+0x460/0xb80
    ? \_raw\_spin\_unlock\_irqrestore+0x32/0x60
    ? \_\_napi\_poll.constprop.0+0x580/0x580
    ? tasklet\_action\_common.isra.0+0x2ef/0x760
    \_\_do\_softirq+0x26c/0x827
    irq\_exit\_rcu+0xc2/0x100
    common\_interrupt+0x7f/0xa0
    \</IRQ\>
    \<TASK\>
    asm\_common\_interrupt+0x22/0x40
    RIP: 0010:\_\_kmem\_cache\_alloc\_node+0xb/0x330
    Code: 41 5d 41 5e 41 5f c3 8b 44 24 14 8b 4c 24 10 09 c8 eb d5 e8 b7 43 ca 01 0f 1f 80 00 00 00 00 0f 1f 44 00 00 55 48 89 e5 41 57 \<41\> 56 41 89 d6 41 55 41 89 f5 41 54 49 89 fc 53 48 83 e4 f0 48 83
    RSP: 0018:ffff88812c4079c0 EFLAGS: 00000246
    RAX: 1ffffffff083c7fe RBX: ffff888100042dc0 RCX: 0000000000000218
    RDX: 00000000ffffffff RSI: 0000000000000dc0 RDI: ffff888100042dc0
    RBP: ffff88812c4079c8 R08: ffffffffa0289f96 R09: ffffed1025880ea9
    R10: ffff888138839f80 R11: 0000000000000002 R12: 0000000000000dc0
    R13: 0000000000000100 R14: 000000000000008c R15: ffff8881271fc450
    ? cmd\_exec+0x796/0x2200 \[mlx5\_core\]
    kmalloc\_trace+0x26/0xc0
    cmd\_exec+0x796/0x2200 \[mlx5\_core\]
    mlx5\_cmd\_do+0x22/0xc0 \[mlx5\_core\]
    mlx5\_cmd\_exec+0x17/0x30 \[mlx5\_core\]
    mlx5\_core\_modify\_cq\_moderation+0x139/0x1b0 \[mlx5\_core\]
    ? mlx5\_add\_cq\_to\_tasklet+0x280/0x280 \[mlx5\_core\]
    ? lockdep\_set\_lock\_cmp\_fn+0x190/0x190
    ? process\_one\_work+0x659/0x1220
    mlx5e\_rx\_dim\_work+0x9d/0x100 \[mlx5\_core\]
    process\_one\_work+0x730/0x1220
    ? lockdep\_hardirqs\_on\_prepare+0x400/0x400
    ? max\_active\_store+0xf0/0xf0
    ? assign\_work+0x168/0x240
    worker\_thread+0x70f/0x12d0
    ? \_\_kthread\_parkme+0xd1/0x1d0
    ? process\_one\_work+0x1220/0x1220
    kthread+0x2d9/0x3b0
    ? kthread\_complete\_and\_exit+0x20/0x20
    ret\_from\_fork+0x2d/0x70
    ? kthread\_complete\_and\_exit+0x20/0x20
    ret\_from\_fork\_as
---truncated---

## Affected and fixed versions

- Linux: \>= e729382c297e2c492ff2a260aa1f23183eadae2e, \< a9d6c0c5a6bd9ca88e964f8843ea41bc085de866; \>= 3178308ad4ca38955cad684d235153d4939f1fcd, \< 4d510506b46504664eacf8a44a9e8f3e54c137b8; \>= 3178308ad4ca38955cad684d235153d4939f1fcd, \< 7e3f3ba97e6cc6fce5bf62df2ca06c8e59040167 (cvelist)
- Linux: 6.6 (cvelist)

## Mitigation

- Upgrade Linux to 7e3f3ba97e6cc6fce5bf62df2ca06c8e59040167 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-52782. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-52782.md
Affected: Linux >= e729382c297e2c492ff2a260aa1f23183eadae2e, < a9d6c0c5a6bd9ca88e964f8843ea41bc085de866; >= 3178308ad4ca38955cad684d235153d4939f1fcd, < 4d510506b46504664eacf8a44a9e8f3e54c137b8; >= 3178308ad4ca38955cad684d235153d4939f1fcd, < 7e3f3ba97e6cc6fce5bf62df2ca06c8e59040167; Linux 6.6
Fixed in: Linux 4d510506b46504664eacf8a44a9e8f3e54c137b8, Linux 7e3f3ba97e6cc6fce5bf62df2ca06c8e59040167

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.
```

## FAQ

### Is CVE-2023-52782 being exploited?

There is no confirmed exploitation: CVE-2023-52782 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.30% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2023-52782?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2023-52782?

Linux \>= e729382c297e2c492ff2a260aa1f23183eadae2e, \< a9d6c0c5a6bd9ca88e964f8843ea41bc085de866; \>= 3178308ad4ca38955cad684d235153d4939f1fcd, \< 4d510506b46504664eacf8a44a9e8f3e54c137b8; \>= 3178308ad4ca38955cad684d235153d4939f1fcd, \< 7e3f3ba97e6cc6fce5bf62df2ca06c8e59040167; Linux 6.6.

### Is there a fix for CVE-2023-52782?

Yes. Fixed in Linux 4d510506b46504664eacf8a44a9e8f3e54c137b8, Linux 7e3f3ba97e6cc6fce5bf62df2ca06c8e59040167. Upgrade Linux to 7e3f3ba97e6cc6fce5bf62df2ca06c8e59040167 or later.

### How do I check if I'm affected by CVE-2023-52782?

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.

## References

- patch: <https://git.kernel.org/stable/c/a9d6c0c5a6bd9ca88e964f8843ea41bc085de866>
- patch: <https://git.kernel.org/stable/c/4d510506b46504664eacf8a44a9e8f3e54c137b8>
- patch: <https://git.kernel.org/stable/c/7e3f3ba97e6cc6fce5bf62df2ca06c8e59040167>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-52782>

HTML: <https://flawdb.com/CVE-2023-52782> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-52782>
