# CVE-2023-53011: net: stmmac: enable all safety features by default

> 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.28% (percentile 13, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2025-03-27T16:43:40.897Z
- **Modified:** 2026-06-17T06:44:06.790Z

## Who should check

- Anyone running Linux \>= 5ac712dcdfefb1a783384db85e0507d161e87812, \< 120b8e527e07c65de7f2b9018dcd9d17e66f2427; \>= 5ac712dcdfefb1a783384db85e0507d161e87812, \< aebf7e62708ba706ee7bf484c9023b15c214e92a; \>= 5ac712dcdfefb1a783384db85e0507d161e87812, \< fdfc76a116b5e9d3e98e6c96fe83b42d011d21d4
- Anyone running Linux 5.14

## Description

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

net: stmmac: enable all safety features by default

In the original implementation of dwmac5
commit 8bf993a5877e ("net: stmmac: Add support for DWMAC5 and implement Safety Features")
all safety features were enabled by default.

Later it seems some implementations didn't have support for all the
features, so in
commit 5ac712dcdfef ("net: stmmac: enable platform specific safety features")
the safety\_feat\_cfg structure was added to the callback and defined for
some platforms to selectively enable these safety features.

The problem is that only certain platforms were given that software
support. If the automotive safety package bit is set in the hardware
features register the safety feature callback is called for the platform,
and for platforms that didn't get a safety\_feat\_cfg defined this results
in the following NULL pointer dereference:

\[    7.933303\] Call trace:
\[    7.935812\]  dwmac5\_safety\_feat\_config+0x20/0x170 \[stmmac\]
\[    7.941455\]  \_\_stmmac\_open+0x16c/0x474 \[stmmac\]
\[    7.946117\]  stmmac\_open+0x38/0x70 \[stmmac\]
\[    7.950414\]  \_\_dev\_open+0x100/0x1dc
\[    7.954006\]  \_\_dev\_change\_flags+0x18c/0x204
\[    7.958297\]  dev\_change\_flags+0x24/0x6c
\[    7.962237\]  do\_setlink+0x2b8/0xfa4
\[    7.965827\]  \_\_rtnl\_newlink+0x4ec/0x840
\[    7.969766\]  rtnl\_newlink+0x50/0x80
\[    7.973353\]  rtnetlink\_rcv\_msg+0x12c/0x374
\[    7.977557\]  netlink\_rcv\_skb+0x5c/0x130
\[    7.981500\]  rtnetlink\_rcv+0x18/0x2c
\[    7.985172\]  netlink\_unicast+0x2e8/0x340
\[    7.989197\]  netlink\_sendmsg+0x1a8/0x420
\[    7.993222\]  \_\_\_\_sys\_sendmsg+0x218/0x280
\[    7.997249\]  \_\_\_sys\_sendmsg+0xac/0x100
\[    8.001103\]  \_\_sys\_sendmsg+0x84/0xe0
\[    8.004776\]  \_\_arm64\_sys\_sendmsg+0x24/0x30
\[    8.008983\]  invoke\_syscall+0x48/0x114
\[    8.012840\]  el0\_svc\_common.constprop.0+0xcc/0xec
\[    8.017665\]  do\_el0\_svc+0x38/0xb0
\[    8.021071\]  el0\_svc+0x2c/0x84
\[    8.024212\]  el0t\_64\_sync\_handler+0xf4/0x120
\[    8.028598\]  el0t\_64\_sync+0x190/0x194

Go back to the original behavior, if the automotive safety package
is found to be supported in hardware enable all the features unless
safety\_feat\_cfg is passed in saying this particular platform only
supports a subset of the features.

## Affected and fixed versions

- Linux: \>= 5ac712dcdfefb1a783384db85e0507d161e87812, \< 120b8e527e07c65de7f2b9018dcd9d17e66f2427; \>= 5ac712dcdfefb1a783384db85e0507d161e87812, \< aebf7e62708ba706ee7bf484c9023b15c214e92a; \>= 5ac712dcdfefb1a783384db85e0507d161e87812, \< fdfc76a116b5e9d3e98e6c96fe83b42d011d21d4 (cvelist)
- Linux: 5.14 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2023-53011.md
Affected: Linux >= 5ac712dcdfefb1a783384db85e0507d161e87812, < 120b8e527e07c65de7f2b9018dcd9d17e66f2427; >= 5ac712dcdfefb1a783384db85e0507d161e87812, < aebf7e62708ba706ee7bf484c9023b15c214e92a; >= 5ac712dcdfefb1a783384db85e0507d161e87812, < fdfc76a116b5e9d3e98e6c96fe83b42d011d21d4; Linux 5.14
Fixed in: Linux 120b8e527e07c65de7f2b9018dcd9d17e66f2427

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

There is no confirmed exploitation: CVE-2023-53011 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-53011?

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

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

Linux \>= 5ac712dcdfefb1a783384db85e0507d161e87812, \< 120b8e527e07c65de7f2b9018dcd9d17e66f2427; \>= 5ac712dcdfefb1a783384db85e0507d161e87812, \< aebf7e62708ba706ee7bf484c9023b15c214e92a; \>= 5ac712dcdfefb1a783384db85e0507d161e87812, \< fdfc76a116b5e9d3e98e6c96fe83b42d011d21d4; Linux 5.14.

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

Yes. Fixed in Linux 120b8e527e07c65de7f2b9018dcd9d17e66f2427. No fix listed yet: follow the vendor advisory.

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

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/120b8e527e07c65de7f2b9018dcd9d17e66f2427>
- patch: <https://git.kernel.org/stable/c/aebf7e62708ba706ee7bf484c9023b15c214e92a>
- patch: <https://git.kernel.org/stable/c/fdfc76a116b5e9d3e98e6c96fe83b42d011d21d4>

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

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