What’s Vulnerable › Vulnerabilities
CVE-2024-50070: pinctrl: stm32: check devm_kasprintf() returned value
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-10-29 · updated 2026-06-17
- Weakness: CWE-476
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.
Affected products
- Linux kernel: from 6.6 before 6.6.58; from 6.7 before 6.11.5; 6.12-rc1, 6.12-rc2, 6.12-rc3 — fixed in 6.11.5, 6.6.58
How to fix
Upgrade to a fixed version: Linux kernel 6.11.5, 6.6.58. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/1f266957ae1207b0717c2d69096bc70654ae9fcb
- https://git.kernel.org/stable/c/3b36bb1fca2b87f6292ca2a8593f297c5e9fab41
- https://git.kernel.org/stable/c/a8d52de0a6c6b091b2771bcb98ce408cf9d69fe3
- https://git.kernel.org/stable/c/b0f0e3f0552a566def55c844b0d44250c58e4df6
Get alerted when CVE-2024-50070 or the next vulnerability affects your stack