# CVE-2024-50070: pinctrl: stm32: check devm_kasprintf() returned value

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- 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.21%, higher than 11% of CVEs (2026-12-01)
- Published: 2024-10-29T00:50:11.130Z
- Modified: 2026-06-17T08:03:30.497Z
- Weaknesses: CWE-476
- Assigned by: Linux

## Description

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

pinctrl: stm32: check devm_kasprintf() returned value

devm_kasprintf() can return a NULL pointer on failure but this returned
value is not checked. Fix this lack and check the returned value.

Found by code review.

(As written by CVE List.)

## Affected

- Linux Linux: from 75285cb2b49a9bfe15fc22aecab45ef25d50e6f2 before a8d52de0a6c6b091b2771bcb98ce408cf9d69fe3; from 32c170ff15b044579b1f8b8cdabf543406dde9da before 3b36bb1fca2b87f6292ca2a8593f297c5e9fab41; from 32c170ff15b044579b1f8b8cdabf543406dde9da before 1f266957ae1207b0717c2d69096bc70654ae9fcb; from 32c170ff15b044579b1f8b8cdabf543406dde9da before b0f0e3f0552a566def55c844b0d44250c58e4df6; 6.6 (not affected: before 6.6; from 6.6.58 up to 6.6.*; from 6.11.5 up to 6.11.*; from 6.12 up to *)
- linux linux_kernel: from 6.6 before 6.6.58; from 6.7 before 6.11.5; 6.12

## References

- <https://git.kernel.org/stable/c/a8d52de0a6c6b091b2771bcb98ce408cf9d69fe3>
- <https://git.kernel.org/stable/c/3b36bb1fca2b87f6292ca2a8593f297c5e9fab41> (patch)
- <https://git.kernel.org/stable/c/1f266957ae1207b0717c2d69096bc70654ae9fcb> (patch)
- <https://git.kernel.org/stable/c/b0f0e3f0552a566def55c844b0d44250c58e4df6> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2024-50070 · Whole record: https://cve.day/CVE-2024-50070.json · Rebuilt by cve.day 2026-11-25T22:58:47.441Z
