# CVE-2023-54319: pinctrl: at91-pio4: check return value of devm_kasprintf()

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.23%, higher than 14% of CVEs (2026-12-01)
- Published: 2025-12-30T12:34:13.468Z
- Modified: 2026-06-17T06:47:13.167Z
- Assigned by: Linux

## 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")

(As written by CVE List.)

## Affected

- Linux Linux: from 776180848b574c9c01217fa958f10843ffce584f before 8d788f2ba830d6d32499b198c526d577c590eedf; from 776180848b574c9c01217fa958f10843ffce584f before 3e8ce1d5a1a9d758b359e5c426543957f35991f8; from 776180848b574c9c01217fa958f10843ffce584f before aa3932eb07392d626486428e2ffddc660658e22a; from 776180848b574c9c01217fa958f10843ffce584f before f3c7b95c9991dab02e616fc251b6c3516e0bd0ac; from 776180848b574c9c01217fa958f10843ffce584f before 0a95dd17a73b7603818ad7c46c99d757232be331; from 776180848b574c9c01217fa958f10843ffce584f before 0af388fce352ed2ab383fd5d1a08db551ca15c38; from 776180848b574c9c01217fa958f10843ffce584f before 5bfd577cc728270d6cd7af6c652a1e7661f25487; from 776180848b574c9c01217fa958f10843ffce584f before 8a1fa202f47f39680a4305af744f499a324f8a03; from 776180848b574c9c01217fa958f10843ffce584f before f6fd5d4ff8ca0b24cee1af4130bcb1fa96b61aa0; 4.4 (not affected: before 4.4; from 4.14.322 up to 4.14.*; from 4.19.291 up to 4.19.*; from 5.4.251 up to 5.4.*; from 5.10.188 up to 5.10.*; from 5.15.121 up to 5.15.*; from 6.1.39 up to 6.1.*; from 6.3.13 up to 6.3.*; from 6.4.4 up to 6.4.*; from 6.5 up to *)

## References

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

## Sources

- CVE List: [CVE-2023-54319](https://www.cve.org/CVERecord?id=CVE-2023-54319), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2023-54319](https://nvd.nist.gov/vuln/detail/CVE-2023-54319), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-54319 · Whole record: https://cve.day/CVE-2023-54319.json · Rebuilt by cve.day 2026-11-25T22:58:35.273Z
