# CVE-2026-53172: accel/ethosu: fix IFM region index out-of-bounds in command stream parser

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; 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.17% (percentile 3, 2026-11-26)
- **CWE:** CWE-125
- **Published:** 2026-06-25T08:38:50.056Z
- **Modified:** 2026-08-05T12:33:41.473Z

## Who should check

- Anyone running Linux \>= 5a5e9c0228e613f0ef2a58b9782d7c0ea8f1e58b, \< ee7bed779def61ebff1b92b0e851f412176fa416; \>= 5a5e9c0228e613f0ef2a58b9782d7c0ea8f1e58b, \< 00f547e0dfecf83014fb32bcba587c6b684c1362
- Anyone running Linux 6.19

## Description

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

accel/ethosu: fix IFM region index out-of-bounds in command stream parser

NPU\_SET\_IFM\_REGION extracts the region index with param & 0x7f, giving
a maximum value of 127. However region\_size\[\] and output\_region\[\] in
struct ethosu\_validated\_cmdstream\_info are both sized to
NPU\_BASEP\_REGION\_MAX (8), giving valid indices \[0..7\].

Every other region assignment in the same switch uses param & 0x7:
  NPU\_SET\_OFM\_REGION:  st.ofm.region  = param & 0x7;
  NPU\_SET\_IFM2\_REGION: st.ifm2.region = param & 0x7;
  NPU\_SET\_WEIGHT\_REGION: st.weight\[0\].region = param & 0x7;
  NPU\_SET\_SCALE\_REGION:  st.scale\[0\].region  = param & 0x7;

The 0x7f mask on IFM is inconsistent and appears to be a typo.

feat\_matrix\_length() and calc\_sizes() use the region index directly
as an array subscript into the kzalloc'd info struct:
  info-\>region\_size\[fm-\>region\] = max(...);

A userspace caller supplying NPU\_SET\_IFM\_REGION with param \> 7 causes
a write up to 127\*8 = 1016 bytes past the start of region\_size\[\],
corrupting adjacent kernel heap data.

Fix by applying the same & 0x7 mask used by all other region
assignments.

## Affected and fixed versions

- Linux: \>= 5a5e9c0228e613f0ef2a58b9782d7c0ea8f1e58b, \< ee7bed779def61ebff1b92b0e851f412176fa416; \>= 5a5e9c0228e613f0ef2a58b9782d7c0ea8f1e58b, \< 00f547e0dfecf83014fb32bcba587c6b684c1362 (cvelist)
- Linux: 6.19 (cvelist)

## Mitigation

- Upgrade Linux to 00f547e0dfecf83014fb32bcba587c6b684c1362 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-53172.md
Affected: Linux >= 5a5e9c0228e613f0ef2a58b9782d7c0ea8f1e58b, < ee7bed779def61ebff1b92b0e851f412176fa416; >= 5a5e9c0228e613f0ef2a58b9782d7c0ea8f1e58b, < 00f547e0dfecf83014fb32bcba587c6b684c1362; Linux 6.19
Fixed in: Linux 00f547e0dfecf83014fb32bcba587c6b684c1362

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-2026-53172 being exploited?

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

### How serious is CVE-2026-53172?

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

### Which versions are affected by CVE-2026-53172?

Linux \>= 5a5e9c0228e613f0ef2a58b9782d7c0ea8f1e58b, \< ee7bed779def61ebff1b92b0e851f412176fa416; \>= 5a5e9c0228e613f0ef2a58b9782d7c0ea8f1e58b, \< 00f547e0dfecf83014fb32bcba587c6b684c1362; Linux 6.19.

### Is there a fix for CVE-2026-53172?

Yes. Fixed in Linux 00f547e0dfecf83014fb32bcba587c6b684c1362. Upgrade Linux to 00f547e0dfecf83014fb32bcba587c6b684c1362 or later.

### How do I check if I'm affected by CVE-2026-53172?

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/ee7bed779def61ebff1b92b0e851f412176fa416>
- patch: <https://git.kernel.org/stable/c/00f547e0dfecf83014fb32bcba587c6b684c1362>

## 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-2026-53172>

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