# CVE-2023-53022: net: enetc: avoid deadlock in enetc\_tx\_onestep\_tstamp()

> 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, CNA) `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.21% (percentile 7, 2026-11-28)
- **CWE:** CWE-667
- **Published:** 2025-03-27T16:43:48.513Z
- **Modified:** 2026-06-17T06:44:08.460Z

## Who should check

- Anyone running Linux \>= 7294380c5211687aa4d66166984b152ee84caf5f, \< 8232e5a84d25a84a5cbda0f241a00793fb6eb608; \>= 7294380c5211687aa4d66166984b152ee84caf5f, \< e893dced1a18e77b1262f5c10169413f0ece0da7; \>= 7294380c5211687aa4d66166984b152ee84caf5f, \< 3c463721a73bdb57a913e0d3124677a3758886fc
- Anyone running Linux 5.13

## Description

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

net: enetc: avoid deadlock in enetc\_tx\_onestep\_tstamp()

This lockdep splat says it better than I could:

================================
WARNING: inconsistent lock state
6.2.0-rc2-07010-ga9b9500ffaac-dirty \#967 Not tainted
--------------------------------
inconsistent {IN-SOFTIRQ-W} -\> {SOFTIRQ-ON-W} usage.
kworker/1:3/179 \[HC0\[0\]:SC0\[0\]:HE1:SE1\] takes:
ffff3ec4036ce098 (\_xmit\_ETHER\#2){+.?.}-{3:3}, at: netif\_freeze\_queues+0x5c/0xc0
{IN-SOFTIRQ-W} state was registered at:
  \_raw\_spin\_lock+0x5c/0xc0
  sch\_direct\_xmit+0x148/0x37c
  \_\_dev\_queue\_xmit+0x528/0x111c
  ip6\_finish\_output2+0x5ec/0xb7c
  ip6\_finish\_output+0x240/0x3f0
  ip6\_output+0x78/0x360
  ndisc\_send\_skb+0x33c/0x85c
  ndisc\_send\_rs+0x54/0x12c
  addrconf\_rs\_timer+0x154/0x260
  call\_timer\_fn+0xb8/0x3a0
  \_\_run\_timers.part.0+0x214/0x26c
  run\_timer\_softirq+0x3c/0x74
  \_\_do\_softirq+0x14c/0x5d8
  \_\_\_\_do\_softirq+0x10/0x20
  call\_on\_irq\_stack+0x2c/0x5c
  do\_softirq\_own\_stack+0x1c/0x30
  \_\_irq\_exit\_rcu+0x168/0x1a0
  irq\_exit\_rcu+0x10/0x40
  el1\_interrupt+0x38/0x64
irq event stamp: 7825
hardirqs last  enabled at (7825): \[\<ffffdf1f7200cae4\>\] exit\_to\_kernel\_mode+0x34/0x130
hardirqs last disabled at (7823): \[\<ffffdf1f708105f0\>\] \_\_do\_softirq+0x550/0x5d8
softirqs last  enabled at (7824): \[\<ffffdf1f7081050c\>\] \_\_do\_softirq+0x46c/0x5d8
softirqs last disabled at (7811): \[\<ffffdf1f708166e0\>\] \_\_\_\_do\_softirq+0x10/0x20

other info that might help us debug this:
 Possible unsafe locking scenario:

       CPU0
       ----
  lock(\_xmit\_ETHER\#2);
  \<Interrupt\>
    lock(\_xmit\_ETHER\#2);

 \*\*\* DEADLOCK \*\*\*

3 locks held by kworker/1:3/179:
 \#0: ffff3ec400004748 ((wq\_completion)events){+.+.}-{0:0}, at: process\_one\_work+0x1f4/0x6c0
 \#1: ffff80000a0bbdc8 ((work\_completion)(&priv-\>tx\_onestep\_tstamp)){+.+.}-{0:0}, at: process\_one\_work+0x1f4/0x6c0
 \#2: ffff3ec4036cd438 (&dev-\>tx\_global\_lock){+.+.}-{3:3}, at: netif\_tx\_lock+0x1c/0x34

Workqueue: events enetc\_tx\_onestep\_tstamp
Call trace:
 print\_usage\_bug.part.0+0x208/0x22c
 mark\_lock+0x7f0/0x8b0
 \_\_lock\_acquire+0x7c4/0x1ce0
 lock\_acquire.part.0+0xe0/0x220
 lock\_acquire+0x68/0x84
 \_raw\_spin\_lock+0x5c/0xc0
 netif\_freeze\_queues+0x5c/0xc0
 netif\_tx\_lock+0x24/0x34
 enetc\_tx\_onestep\_tstamp+0x20/0x100
 process\_one\_work+0x28c/0x6c0
 worker\_thread+0x74/0x450
 kthread+0x118/0x11c

but I'll say it anyway: the enetc\_tx\_onestep\_tstamp() work item runs in
process context, therefore with softirqs enabled (i.o.w., it can be
interrupted by a softirq). If we hold the netif\_tx\_lock() when there is
an interrupt, and the NET\_TX softirq then gets scheduled, this will take
the netif\_tx\_lock() a second time and deadlock the kernel.

To solve this, use netif\_tx\_lock\_bh(), which blocks softirqs from
running.

## Affected and fixed versions

- Linux: \>= 7294380c5211687aa4d66166984b152ee84caf5f, \< 8232e5a84d25a84a5cbda0f241a00793fb6eb608; \>= 7294380c5211687aa4d66166984b152ee84caf5f, \< e893dced1a18e77b1262f5c10169413f0ece0da7; \>= 7294380c5211687aa4d66166984b152ee84caf5f, \< 3c463721a73bdb57a913e0d3124677a3758886fc (cvelist)
- Linux: 5.13 (cvelist)

## Mitigation

- Upgrade Linux to 3c463721a73bdb57a913e0d3124677a3758886fc 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-53022. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-53022.md
Affected: Linux >= 7294380c5211687aa4d66166984b152ee84caf5f, < 8232e5a84d25a84a5cbda0f241a00793fb6eb608; >= 7294380c5211687aa4d66166984b152ee84caf5f, < e893dced1a18e77b1262f5c10169413f0ece0da7; >= 7294380c5211687aa4d66166984b152ee84caf5f, < 3c463721a73bdb57a913e0d3124677a3758886fc; Linux 5.13
Fixed in: Linux 8232e5a84d25a84a5cbda0f241a00793fb6eb608, Linux 3c463721a73bdb57a913e0d3124677a3758886fc

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-53022 being exploited?

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

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

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

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

Linux \>= 7294380c5211687aa4d66166984b152ee84caf5f, \< 8232e5a84d25a84a5cbda0f241a00793fb6eb608; \>= 7294380c5211687aa4d66166984b152ee84caf5f, \< e893dced1a18e77b1262f5c10169413f0ece0da7; \>= 7294380c5211687aa4d66166984b152ee84caf5f, \< 3c463721a73bdb57a913e0d3124677a3758886fc; Linux 5.13.

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

Yes. Fixed in Linux 8232e5a84d25a84a5cbda0f241a00793fb6eb608, Linux 3c463721a73bdb57a913e0d3124677a3758886fc. Upgrade Linux to 3c463721a73bdb57a913e0d3124677a3758886fc or later.

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

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/8232e5a84d25a84a5cbda0f241a00793fb6eb608>
- patch: <https://git.kernel.org/stable/c/e893dced1a18e77b1262f5c10169413f0ece0da7>
- patch: <https://git.kernel.org/stable/c/3c463721a73bdb57a913e0d3124677a3758886fc>

## 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-53022>

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