# CVE-2023-54319: pinctrl: at91-pio4: check return value of devm\_kasprintf()

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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.30% (percentile 15, 2026-11-28)
- **Published:** 2025-12-30T12:34:13.468Z
- **Modified:** 2026-06-17T06:47:13.167Z

## Who should check

- Anyone running Linux \>= 776180848b574c9c01217fa958f10843ffce584f, \< 8d788f2ba830d6d32499b198c526d577c590eedf; \>= 776180848b574c9c01217fa958f10843ffce584f, \< 3e8ce1d5a1a9d758b359e5c426543957f35991f8; \>= 776180848b574c9c01217fa958f10843ffce584f, \< aa3932eb07392d626486428e2ffddc660658e22a; \>= 776180848b574c9c01217fa958f10843ffce584f, \< f3c7b95c9991dab02e616fc251b6c3516e0bd0ac; \>= 776180848b574c9c01217fa958f10843ffce584f, \< 0a95dd17a73b7603818ad7c46c99d757232be331; \>= 776180848b574c9c01217fa958f10843ffce584f, \< 0af388fce352ed2ab383fd5d1a08db551ca15c38; \>= 776180848b574c9c01217fa958f10843ffce584f, \< 5bfd577cc728270d6cd7af6c652a1e7661f25487; \>= 776180848b574c9c01217fa958f10843ffce584f, \< 8a1fa202f47f39680a4305af744f499a324f8a03; \>= 776180848b574c9c01217fa958f10843ffce584f, \< f6fd5d4ff8ca0b24cee1af4130bcb1fa96b61aa0
- Anyone running Linux 4.4

## Description

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

pinctrl: at91-pio4: check return value of devm\_kasprintf()

devm\_kasprintf() returns a pointer to dynamically allocated memory.
Pointer could be NULL in case allocation fails. Check pointer validity.
Identified with coccinelle (kmerr.cocci script).

Depends-on: 1c4e5c470a56 ("pinctrl: at91: use devm\_kasprintf() to avoid potential leaks")
Depends-on: 5a8f9cf269e8 ("pinctrl: at91-pio4: use proper format specifier for unsigned int")

## Affected and fixed versions

- Linux: \>= 776180848b574c9c01217fa958f10843ffce584f, \< 8d788f2ba830d6d32499b198c526d577c590eedf; \>= 776180848b574c9c01217fa958f10843ffce584f, \< 3e8ce1d5a1a9d758b359e5c426543957f35991f8; \>= 776180848b574c9c01217fa958f10843ffce584f, \< aa3932eb07392d626486428e2ffddc660658e22a; \>= 776180848b574c9c01217fa958f10843ffce584f, \< f3c7b95c9991dab02e616fc251b6c3516e0bd0ac; \>= 776180848b574c9c01217fa958f10843ffce584f, \< 0a95dd17a73b7603818ad7c46c99d757232be331; \>= 776180848b574c9c01217fa958f10843ffce584f, \< 0af388fce352ed2ab383fd5d1a08db551ca15c38; \>= 776180848b574c9c01217fa958f10843ffce584f, \< 5bfd577cc728270d6cd7af6c652a1e7661f25487; \>= 776180848b574c9c01217fa958f10843ffce584f, \< 8a1fa202f47f39680a4305af744f499a324f8a03; \>= 776180848b574c9c01217fa958f10843ffce584f, \< f6fd5d4ff8ca0b24cee1af4130bcb1fa96b61aa0 (cvelist)
- Linux: 4.4 (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-54319. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-54319.md
Affected: Linux >= 776180848b574c9c01217fa958f10843ffce584f, < 8d788f2ba830d6d32499b198c526d577c590eedf; >= 776180848b574c9c01217fa958f10843ffce584f, < 3e8ce1d5a1a9d758b359e5c426543957f35991f8; >= 776180848b574c9c01217fa958f10843ffce584f, < aa3932eb07392d626486428e2ffddc660658e22a; >= 776180848b574c9c01217fa…
Fixed in: Linux 8d788f2ba830d6d32499b198c526d577c590eedf, Linux 3e8ce1d5a1a9d758b359e5c426543957f35991f8, Linux 0a95dd17a73b7603818ad7c46c99d757232be331, Linux 0af388fce352ed2ab383fd5d1a08db551ca15c38, Linux 5bfd577cc728270d6cd7af6c652a1e7661f25487, Linux 8a1fa202f47f39680a4305af744f499a324f8a03

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

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= 776180848b574c9c01217fa958f10843ffce584f, \< 8d788f2ba830d6d32499b198c526d577c590eedf; \>= 776180848b574c9c01217fa958f10843ffce584f, \< 3e8ce1d5a1a9d758b359e5c426543957f35991f8; \>= 776180848b574c9c01217fa958f10843ffce584f, \< aa3932eb07392d626486428e2ffddc660658e22a; \>= 776180848b574c9c01217fa958f10843ffce584f, \< f3c7b95c9991dab02e616fc251b6c3516e0bd0ac; \>= 776180848b574c9c01217fa958f10843ffce584f, \< 0a95dd17a73b7603818ad7c46c99d757232be331; \>= 776180848b574c9c01217fa958f10843ffce584f, \< 0af388fce352ed2ab383fd5d1a08db551ca15c38; \>= 776180848b574c9c01217fa958f10843ffce584f, \< 5bfd577cc728270d6cd7af6c652a1e7661f25487; \>= 776180848b574c9c01217fa958f10843ffce584f, \< 8a1fa202f47f39680a4305af744f499a324f8a03; \>= 776180848b574c9c01217fa958f10843ffce584f, \< f6fd5d4ff8ca0b24cee1af4130bcb1fa96b61aa0; Linux 4.4.

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

Yes. Fixed in Linux 8d788f2ba830d6d32499b198c526d577c590eedf, Linux 3e8ce1d5a1a9d758b359e5c426543957f35991f8, Linux 0a95dd17a73b7603818ad7c46c99d757232be331, Linux 0af388fce352ed2ab383fd5d1a08db551ca15c38, Linux 5bfd577cc728270d6cd7af6c652a1e7661f25487, Linux 8a1fa202f47f39680a4305af744f499a324f8a03. No fix listed yet: follow the vendor advisory.

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

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/8d788f2ba830d6d32499b198c526d577c590eedf>
- other: <https://git.kernel.org/stable/c/3e8ce1d5a1a9d758b359e5c426543957f35991f8>
- other: <https://git.kernel.org/stable/c/aa3932eb07392d626486428e2ffddc660658e22a>
- other: <https://git.kernel.org/stable/c/f3c7b95c9991dab02e616fc251b6c3516e0bd0ac>
- other: <https://git.kernel.org/stable/c/0a95dd17a73b7603818ad7c46c99d757232be331>
- other: <https://git.kernel.org/stable/c/0af388fce352ed2ab383fd5d1a08db551ca15c38>
- other: <https://git.kernel.org/stable/c/5bfd577cc728270d6cd7af6c652a1e7661f25487>
- other: <https://git.kernel.org/stable/c/8a1fa202f47f39680a4305af744f499a324f8a03>
- other: <https://git.kernel.org/stable/c/f6fd5d4ff8ca0b24cee1af4130bcb1fa96b61aa0>

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

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