# i2c: dev: check return value when calling dev_set_name()

CVE record · `CVE-2022-49046`

- **Identifiers:** `CVE-2022-49046`
- **State:** Confirmed
- **Severity:** No CVSS score
- **Critical:** No
- **CNA:** Linux
- **Technologies:** [Linux kernel](https://agentprime.io/advisories/technology/linux-kernel.md)
- **Published:** 26 Feb 2025
- **Updated:** 5 Nov 2026
- **Reviewed by a person:** No

Published by the CVE Program (CNA: Linux) at 26 Feb 2025, 01:54 UTC. agentprime has not analysed this yet, so whether it affects any app is not known. This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it.

## Affected products, as the CNA wrote them

- Vendor: Linux. Product: Linux.
  - affected: `1413ef638abae4ab5621901cf4d8ef08a4a48ba6 to before 2e539b17d4cbe5fb8b5152dd9a6e4a8828f97db2` (git)
  - affected: `1413ef638abae4ab5621901cf4d8ef08a4a48ba6 to before 2f345bb14ad4744950499ff222e2899209297afa` (git)
  - affected: `1413ef638abae4ab5621901cf4d8ef08a4a48ba6 to before c74d77a2d07744147d734138acd6ce9dba715e5d` (git)
  - affected: `1413ef638abae4ab5621901cf4d8ef08a4a48ba6 to before 993eb48fa199b5f476df8204e652eff63dd19361` (git)
  - affected: `1c1b4327970c79c1a2d0c3becfc12b9696177c55` (git)
  - affected: `c0d34399045609eda76882fa6d01fdfaf5b20d38` (git)
  - affected: `f1f3b4150baf7c3aa6b4e6b81b8ff1909996d507` (git)
  - affected: `a612c4ece2eb757011ae88a8410b48e523220b8d` (git)
  - affected: `1bed86cfe5cb4529d036a14980d379aee8539982` (git)
  - affected: `8a231148135d2d08a3ef721d438cd468ea4209d2` (git)
  - affected: `4.4.225 to before 4.5` (semver)
  - affected: `4.9.225 to before 4.10` (semver)
  - and 4 more
  - Other versions: unaffected
- Vendor: Linux. Product: Linux.
  - affected: `5.7`
  - unaffected: `before 5.7` (semver)
  - unaffected: `5.10.236 to 5.10.*, inclusive` (semver)
  - unaffected: `5.15.35 to 5.15.*, inclusive` (semver)
  - unaffected: `5.17.4 to 5.17.*, inclusive` (semver)
  - unaffected: `5.18 to *, inclusive` (original_commit_for_fix)
  - Other versions: affected

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> Linux kernel: the i2c-dev driver could dereference a null pointer, because the return value of dev_set_name() was not checked. The source gives few details about how it is triggered or what an attacker could do. The fix is to upgrade the Linux kernel to a version that includes the corrected check, such as 5.10.236, 5.15.35, 5.17.4 or 5.18 and later, depending on the branch in use.

Written 16 Nov 2026.

## Not analysed yet

We haven’t published our own analysis of this CVE. If a person reviews it, this page will say what’s affected and what has to be true for it to matter.

## Severity and exploitation

No source has published a CVSS score for this record yet.

- **CISA KEV:** Not listed.
- **EPSS:** 0.0026, the 18th percentile, on 20 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 26 Feb 2025, 01:54 UTC: [Confirmed by the CVE List](https://www.cve.org/CVERecord?id=CVE-2022-49046)
- 26 Feb 2025, 07:00 UTC: [Confirmed by NVD](https://nvd.nist.gov/vuln/detail/CVE-2022-49046)

## Sources

- [CVE List: CVE-2022-49046](https://www.cve.org/CVERecord?id=CVE-2022-49046)
- [NVD: CVE-2022-49046](https://nvd.nist.gov/vuln/detail/CVE-2022-49046)

### References from the CNA

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

Facts on this page come from the CVE List as the CNA published them, with CVSS from the sources named above, CISA KEV and FIRST EPSS. Vendors, products and versions are shown as the CNA wrote them. We don’t reproduce the CVE’s description.

## Check whether this affects you

This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it. Compare the affected versions above with what you run.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), `get_advisory` returns this record and `search_advisories` finds related ones. Setup: <https://agentprime.io/mcp.md>
- As JSON: <https://api.agentprime.io/v1/advisories/CVE-2022-49046>
- Everything that needs attention now: <https://agentprime.io/advisories/critical.md>

---

The web page: <https://agentprime.io/advisories/CVE-2022-49046/>. Everything for agents: <https://agentprime.io/llms.txt>.
