# CVE-2023-53342: net: marvell: prestera: fix handling IPv4 routes with nhid

> 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.23% (percentile 8, 2026-11-26)
- **Published:** 2025-09-17T14:56:35.574Z
- **Modified:** 2026-06-17T06:44:56.753Z

## Who should check

- Anyone running Linux \>= 396b80cb5cc8006a488ea25ef84fae245dc1b43c, \< a3e5f3b7f25d7b90f3b76d98a946fec6e5f79216; \>= 396b80cb5cc8006a488ea25ef84fae245dc1b43c, \< 8373dca3c1f8a203cecebe3421dbe890c4f08e16; \>= 396b80cb5cc8006a488ea25ef84fae245dc1b43c, \< 2aa71b4b294ee2c3041d085404cea914be9b3225
- Anyone running Linux 6.1

## Description

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

net: marvell: prestera: fix handling IPv4 routes with nhid

Fix handling IPv4 routes referencing a nexthop via its id by replacing
calls to fib\_info\_nh() with fib\_info\_nhc().

Trying to add an IPv4 route referencing a nextop via nhid:

    $ ip link set up swp5
    $ ip a a 10.0.0.1/24 dev swp5
    $ ip nexthop add dev swp5 id 20 via 10.0.0.2
    $ ip route add 10.0.1.0/24 nhid 20

triggers warnings when trying to handle the route:

\[  528.805763\] ------------\[ cut here \]------------
\[  528.810437\] WARNING: CPU: 3 PID: 53 at include/net/nexthop.h:468 \_\_prestera\_fi\_is\_direct+0x2c/0x68 \[prestera\]
\[  528.820434\] Modules linked in: prestera\_pci act\_gact act\_police sch\_ingress cls\_u32 cls\_flower prestera arm64\_delta\_tn48m\_dn\_led(O) arm64\_delta\_tn48m\_dn\_cpld(O) \[last unloaded: prestera\_pci\]
\[  528.837485\] CPU: 3 PID: 53 Comm: kworker/u8:3 Tainted: G           O       6.4.5 \#1
\[  528.845178\] Hardware name: delta,tn48m-dn (DT)
\[  528.849641\] Workqueue: prestera\_ordered \_\_prestera\_router\_fib\_event\_work \[prestera\]
\[  528.857352\] pstate: 60000005 (nZCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
\[  528.864347\] pc : \_\_prestera\_fi\_is\_direct+0x2c/0x68 \[prestera\]
\[  528.870135\] lr : prestera\_k\_arb\_fib\_evt+0xb20/0xd50 \[prestera\]
\[  528.876007\] sp : ffff80000b20bc90
\[  528.879336\] x29: ffff80000b20bc90 x28: 0000000000000000 x27: ffff0001374d3a48
\[  528.886510\] x26: ffff000105604000 x25: ffff000134af8a28 x24: ffff0001374d3800
\[  528.893683\] x23: ffff000101c89148 x22: ffff000101c89000 x21: ffff000101c89200
\[  528.900855\] x20: ffff00013641fda0 x19: ffff800009d01088 x18: 0000000000000059
\[  528.908027\] x17: 0000000000000277 x16: 0000000000000000 x15: 0000000000000000
\[  528.915198\] x14: 0000000000000003 x13: 00000000000fe400 x12: 0000000000000000
\[  528.922371\] x11: 0000000000000002 x10: 0000000000000aa0 x9 : ffff8000013d2020
\[  528.929543\] x8 : 0000000000000018 x7 : 000000007b1703f8 x6 : 000000001ca72f86
\[  528.936715\] x5 : 0000000033399ea7 x4 : 0000000000000000 x3 : ffff0001374d3acc
\[  528.943886\] x2 : 0000000000000000 x1 : ffff00010200de00 x0 : ffff000134ae3f80
\[  528.951058\] Call trace:
\[  528.953516\]  \_\_prestera\_fi\_is\_direct+0x2c/0x68 \[prestera\]
\[  528.958952\]  \_\_prestera\_router\_fib\_event\_work+0x100/0x158 \[prestera\]
\[  528.965348\]  process\_one\_work+0x208/0x488
\[  528.969387\]  worker\_thread+0x4c/0x430
\[  528.973068\]  kthread+0x120/0x138
\[  528.976313\]  ret\_from\_fork+0x10/0x20
\[  528.979909\] ---\[ end trace 0000000000000000 \]---
\[  528.984998\] ------------\[ cut here \]------------
\[  528.989645\] WARNING: CPU: 3 PID: 53 at include/net/nexthop.h:468 \_\_prestera\_fi\_is\_direct+0x2c/0x68 \[prestera\]
\[  528.999628\] Modules linked in: prestera\_pci act\_gact act\_police sch\_ingress cls\_u32 cls\_flower prestera arm64\_delta\_tn48m\_dn\_led(O) arm64\_delta\_tn48m\_dn\_cpld(O) \[last unloaded: prestera\_pci\]
\[  529.016676\] CPU: 3 PID: 53 Comm: kworker/u8:3 Tainted: G        W  O       6.4.5 \#1
\[  529.024368\] Hardware name: delta,tn48m-dn (DT)
\[  529.028830\] Workqueue: prestera\_ordered \_\_prestera\_router\_fib\_event\_work \[prestera\]
\[  529.036539\] pstate: 60000005 (nZCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
\[  529.043533\] pc : \_\_prestera\_fi\_is\_direct+0x2c/0x68 \[prestera\]
\[  529.049318\] lr : \_\_prestera\_k\_arb\_fc\_apply+0x280/0x2f8 \[prestera\]
\[  529.055452\] sp : ffff80000b20bc60
\[  529.058781\] x29: ffff80000b20bc60 x28: 0000000000000000 x27: ffff0001374d3a48
\[  529.065953\] x26: ffff000105604000 x25: ffff000134af8a28 x24: ffff0001374d3800
\[  529.073126\] x23: ffff000101c89148 x22: ffff000101c89148 x21: ffff00013641fda0
\[  529.080299\] x20: ffff000101c89000 x19: ffff000101c89020 x18: 0000000000000059
\[  529.087471\] x17: 0000000000000277 x16: 0000000000000000 x15: 0000000000000000
\[  529.094642\] x14: 0000000000000003 x13: 00000000000fe400 x12: 0000000000000000
\[  529.101814\] x11: 0000000000000002 x10: 0000000000000aa0 x9 : ffff8000013cee80
\[  529.108985\] x8 : 0000000000000018 x7 : 000000007b1703f8 x6 
---truncated---

## Affected and fixed versions

- Linux: \>= 396b80cb5cc8006a488ea25ef84fae245dc1b43c, \< a3e5f3b7f25d7b90f3b76d98a946fec6e5f79216; \>= 396b80cb5cc8006a488ea25ef84fae245dc1b43c, \< 8373dca3c1f8a203cecebe3421dbe890c4f08e16; \>= 396b80cb5cc8006a488ea25ef84fae245dc1b43c, \< 2aa71b4b294ee2c3041d085404cea914be9b3225 (cvelist)
- Linux: 6.1 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2023-53342.md
Affected: Linux >= 396b80cb5cc8006a488ea25ef84fae245dc1b43c, < a3e5f3b7f25d7b90f3b76d98a946fec6e5f79216; >= 396b80cb5cc8006a488ea25ef84fae245dc1b43c, < 8373dca3c1f8a203cecebe3421dbe890c4f08e16; >= 396b80cb5cc8006a488ea25ef84fae245dc1b43c, < 2aa71b4b294ee2c3041d085404cea914be9b3225; Linux 6.1
Fixed in: Linux 8373dca3c1f8a203cecebe3421dbe890c4f08e16, Linux 2aa71b4b294ee2c3041d085404cea914be9b3225

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

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

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

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

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

Linux \>= 396b80cb5cc8006a488ea25ef84fae245dc1b43c, \< a3e5f3b7f25d7b90f3b76d98a946fec6e5f79216; \>= 396b80cb5cc8006a488ea25ef84fae245dc1b43c, \< 8373dca3c1f8a203cecebe3421dbe890c4f08e16; \>= 396b80cb5cc8006a488ea25ef84fae245dc1b43c, \< 2aa71b4b294ee2c3041d085404cea914be9b3225; Linux 6.1.

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

Yes. Fixed in Linux 8373dca3c1f8a203cecebe3421dbe890c4f08e16, Linux 2aa71b4b294ee2c3041d085404cea914be9b3225. Upgrade Linux to 2aa71b4b294ee2c3041d085404cea914be9b3225 or later.

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

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/a3e5f3b7f25d7b90f3b76d98a946fec6e5f79216>
- patch: <https://git.kernel.org/stable/c/8373dca3c1f8a203cecebe3421dbe890c4f08e16>
- patch: <https://git.kernel.org/stable/c/2aa71b4b294ee2c3041d085404cea914be9b3225>

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

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