# CVE-2023-53029: octeontx2-pf: Fix the use of GFP\_KERNEL in atomic context on rt

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

## Who should check

- Anyone running Linux \>= 6ea5273c71dd2d07c0a2459594eb34bc087939f7, \< 29e9c67bf3271067735c188e95cf3631ecd64d58; \>= 667ce030bdfb62a86266444b2c3fd6ab98b9df9b, \< 659518e013d6bd562bb0f1d2d9f99d0ac54720e2; \>= 4af1b64f80fbe1275fb02c5f1c0cef099a4a231f, \< 55ba18dc62deff5910c0fa64486dea1ff20832ff; b754dc7c933dd9464223f64b10d33d68ab086cc6; \>= 6.0.19, \< 6.1
- Anyone running Linux \>= 5.15.87, \< 5.15.91; \>= 6.1.5, \< 6.1.8

## Description

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

octeontx2-pf: Fix the use of GFP\_KERNEL in atomic context on rt

The commit 4af1b64f80fb ("octeontx2-pf: Fix lmtst ID used in aura
free") uses the get/put\_cpu() to protect the usage of percpu pointer
in -\>aura\_freeptr() callback, but it also unnecessarily disable the
preemption for the blockable memory allocation. The commit 87b93b678e95
("octeontx2-pf: Avoid use of GFP\_KERNEL in atomic context") tried to
fix these sleep inside atomic warnings. But it only fix the one for
the non-rt kernel. For the rt kernel, we still get the similar warnings
like below.
  BUG: sleeping function called from invalid context at kernel/locking/spinlock\_rt.c:46
  in\_atomic(): 1, irqs\_disabled(): 0, non\_block: 0, pid: 1, name: swapper/0
  preempt\_count: 1, expected: 0
  RCU nest depth: 0, expected: 0
  3 locks held by swapper/0/1:
   \#0: ffff800009fc5fe8 (rtnl\_mutex){+.+.}-{3:3}, at: rtnl\_lock+0x24/0x30
   \#1: ffff000100c276c0 (&mbox-\>lock){+.+.}-{3:3}, at: otx2\_init\_hw\_resources+0x8c/0x3a4
   \#2: ffffffbfef6537e0 (&cpu\_rcache-\>lock){+.+.}-{2:2}, at: alloc\_iova\_fast+0x1ac/0x2ac
  Preemption disabled at:
  \[\<ffff800008b1908c\>\] otx2\_rq\_aura\_pool\_init+0x14c/0x284
  CPU: 20 PID: 1 Comm: swapper/0 Tainted: G        W          6.2.0-rc3-rt1-yocto-preempt-rt \#1
  Hardware name: Marvell OcteonTX CN96XX board (DT)
  Call trace:
   dump\_backtrace.part.0+0xe8/0xf4
   show\_stack+0x20/0x30
   dump\_stack\_lvl+0x9c/0xd8
   dump\_stack+0x18/0x34
   \_\_might\_resched+0x188/0x224
   rt\_spin\_lock+0x64/0x110
   alloc\_iova\_fast+0x1ac/0x2ac
   iommu\_dma\_alloc\_iova+0xd4/0x110
   \_\_iommu\_dma\_map+0x80/0x144
   iommu\_dma\_map\_page+0xe8/0x260
   dma\_map\_page\_attrs+0xb4/0xc0
   \_\_otx2\_alloc\_rbuf+0x90/0x150
   otx2\_rq\_aura\_pool\_init+0x1c8/0x284
   otx2\_init\_hw\_resources+0xe4/0x3a4
   otx2\_open+0xf0/0x610
   \_\_dev\_open+0x104/0x224
   \_\_dev\_change\_flags+0x1e4/0x274
   dev\_change\_flags+0x2c/0x7c
   ic\_open\_devs+0x124/0x2f8
   ip\_auto\_config+0x180/0x42c
   do\_one\_initcall+0x90/0x4dc
   do\_basic\_setup+0x10c/0x14c
   kernel\_init\_freeable+0x10c/0x13c
   kernel\_init+0x2c/0x140
   ret\_from\_fork+0x10/0x20

Of course, we can shuffle the get/put\_cpu() to only wrap the invocation
of -\>aura\_freeptr() as what commit 87b93b678e95 does. But there are only
two -\>aura\_freeptr() callbacks, otx2\_aura\_freeptr() and
cn10k\_aura\_freeptr(). There is no usage of perpcu variable in the
otx2\_aura\_freeptr() at all, so the get/put\_cpu() seems redundant to it.
We can move the get/put\_cpu() into the corresponding callback which
really has the percpu variable usage and avoid the sprinkling of
get/put\_cpu() in several places.

## Affected and fixed versions

- Linux: \>= 6ea5273c71dd2d07c0a2459594eb34bc087939f7, \< 29e9c67bf3271067735c188e95cf3631ecd64d58; \>= 667ce030bdfb62a86266444b2c3fd6ab98b9df9b, \< 659518e013d6bd562bb0f1d2d9f99d0ac54720e2; \>= 4af1b64f80fbe1275fb02c5f1c0cef099a4a231f, \< 55ba18dc62deff5910c0fa64486dea1ff20832ff; b754dc7c933dd9464223f64b10d33d68ab086cc6; \>= 6.0.19, \< 6.1 (cvelist)
- Linux: \>= 5.15.87, \< 5.15.91; \>= 6.1.5, \< 6.1.8 (cvelist)

## Mitigation

- Upgrade Linux to 6.1 or later.
- Upgrade Linux to 6.1.8 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-53029. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-53029.md
Affected: Linux >= 6ea5273c71dd2d07c0a2459594eb34bc087939f7, < 29e9c67bf3271067735c188e95cf3631ecd64d58; >= 667ce030bdfb62a86266444b2c3fd6ab98b9df9b, < 659518e013d6bd562bb0f1d2d9f99d0ac54720e2; >= 4af1b64f80fbe1275fb02c5f1c0cef099a4a231f, < 55ba18dc62deff5910c0fa64486dea1ff20832ff; b754dc7c933dd9464223f64b10…
Fixed in: Linux 29e9c67bf3271067735c188e95cf3631ecd64d58, Linux 659518e013d6bd562bb0f1d2d9f99d0ac54720e2, Linux 55ba18dc62deff5910c0fa64486dea1ff20832ff, Linux 6.1, Linux 5.15.91, Linux 6.1.8

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

There is no confirmed exploitation: CVE-2023-53029 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-26).

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

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

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

Linux \>= 6ea5273c71dd2d07c0a2459594eb34bc087939f7, \< 29e9c67bf3271067735c188e95cf3631ecd64d58; \>= 667ce030bdfb62a86266444b2c3fd6ab98b9df9b, \< 659518e013d6bd562bb0f1d2d9f99d0ac54720e2; \>= 4af1b64f80fbe1275fb02c5f1c0cef099a4a231f, \< 55ba18dc62deff5910c0fa64486dea1ff20832ff; b754dc7c933dd9464223f64b10d33d68ab086cc6; \>= 6.0.19, \< 6.1; Linux \>= 5.15.87, \< 5.15.91; \>= 6.1.5, \< 6.1.8.

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

Yes. Fixed in Linux 29e9c67bf3271067735c188e95cf3631ecd64d58, Linux 659518e013d6bd562bb0f1d2d9f99d0ac54720e2, Linux 55ba18dc62deff5910c0fa64486dea1ff20832ff, Linux 6.1, Linux 5.15.91, Linux 6.1.8. Upgrade Linux to 6.1 or later. Upgrade Linux to 6.1.8 or later.

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

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/29e9c67bf3271067735c188e95cf3631ecd64d58>
- patch: <https://git.kernel.org/stable/c/659518e013d6bd562bb0f1d2d9f99d0ac54720e2>
- patch: <https://git.kernel.org/stable/c/55ba18dc62deff5910c0fa64486dea1ff20832ff>

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

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