# CVE-2023-53768: regmap-irq: Fix out-of-bounds access when allocating config buffers

> 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.23% (percentile 8, 2026-11-26)
- **Published:** 2025-12-08T01:19:31.353Z
- **Modified:** 2026-08-05T09:15:55.388Z

## Who should check

- Anyone running Linux \>= faa87ce9196dbb074d75bd4aecb8bacf18f19b4e, \< b1a726ad33e585e3d9fa70712df31ae105e4532c; \>= faa87ce9196dbb074d75bd4aecb8bacf18f19b4e, \< 6e7b2337ecd028bd888a1a0be4115b8a88faf838; \>= faa87ce9196dbb074d75bd4aecb8bacf18f19b4e, \< 963b54df82b6d6206d7def273390bf3f7af558e1
- Anyone running Linux 6.0

## Description

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

regmap-irq: Fix out-of-bounds access when allocating config buffers

When allocating the 2D array for handling IRQ type registers in
regmap\_add\_irq\_chip\_fwnode(), the intent is to allocate a matrix
with num\_config\_bases rows and num\_config\_regs columns.

This is currently handled by allocating a buffer to hold a pointer for
each row (i.e. num\_config\_bases). After that, the logic attempts to
allocate the memory required to hold the register configuration for
each row. However, instead of doing this allocation for each row
(i.e. num\_config\_bases allocations), the logic erroneously does this
allocation num\_config\_regs number of times.

This scenario can lead to out-of-bounds accesses when num\_config\_regs
is greater than num\_config\_bases. Fix this by updating the terminating
condition of the loop that allocates the memory for holding the register
configuration to allocate memory only for each row in the matrix.

Amit Pundir reported a crash that was occurring on his db845c device
due to memory corruption (see "Closes" tag for Amit's report). The KASAN
report below helped narrow it down to this issue:

\[   14.033877\]\[    T1\] ==================================================================
\[   14.042507\]\[    T1\] BUG: KASAN: invalid-access in regmap\_add\_irq\_chip\_fwnode+0x594/0x1364
\[   14.050796\]\[    T1\] Write of size 8 at addr 06ffff8081021850 by task init/1

\[   14.242004\]\[    T1\] The buggy address belongs to the object at ffffff8081021850
\[   14.242004\]\[    T1\]  which belongs to the cache kmalloc-8 of size 8
\[   14.255669\]\[    T1\] The buggy address is located 0 bytes inside of
\[   14.255669\]\[    T1\]  8-byte region \[ffffff8081021850, ffffff8081021858)

## Affected and fixed versions

- Linux: \>= faa87ce9196dbb074d75bd4aecb8bacf18f19b4e, \< b1a726ad33e585e3d9fa70712df31ae105e4532c; \>= faa87ce9196dbb074d75bd4aecb8bacf18f19b4e, \< 6e7b2337ecd028bd888a1a0be4115b8a88faf838; \>= faa87ce9196dbb074d75bd4aecb8bacf18f19b4e, \< 963b54df82b6d6206d7def273390bf3f7af558e1 (cvelist)
- Linux: 6.0 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2023-53768.md
Affected: Linux >= faa87ce9196dbb074d75bd4aecb8bacf18f19b4e, < b1a726ad33e585e3d9fa70712df31ae105e4532c; >= faa87ce9196dbb074d75bd4aecb8bacf18f19b4e, < 6e7b2337ecd028bd888a1a0be4115b8a88faf838; >= faa87ce9196dbb074d75bd4aecb8bacf18f19b4e, < 963b54df82b6d6206d7def273390bf3f7af558e1; Linux 6.0
Fixed in: Linux 6e7b2337ecd028bd888a1a0be4115b8a88faf838, Linux 963b54df82b6d6206d7def273390bf3f7af558e1

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

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

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

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

Linux \>= faa87ce9196dbb074d75bd4aecb8bacf18f19b4e, \< b1a726ad33e585e3d9fa70712df31ae105e4532c; \>= faa87ce9196dbb074d75bd4aecb8bacf18f19b4e, \< 6e7b2337ecd028bd888a1a0be4115b8a88faf838; \>= faa87ce9196dbb074d75bd4aecb8bacf18f19b4e, \< 963b54df82b6d6206d7def273390bf3f7af558e1; Linux 6.0.

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

Yes. Fixed in Linux 6e7b2337ecd028bd888a1a0be4115b8a88faf838, Linux 963b54df82b6d6206d7def273390bf3f7af558e1. Upgrade Linux to 963b54df82b6d6206d7def273390bf3f7af558e1 or later.

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

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

- other: <https://git.kernel.org/stable/c/b1a726ad33e585e3d9fa70712df31ae105e4532c>
- other: <https://git.kernel.org/stable/c/6e7b2337ecd028bd888a1a0be4115b8a88faf838>
- other: <https://git.kernel.org/stable/c/963b54df82b6d6206d7def273390bf3f7af558e1>

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

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