# CVE-2022-49046: i2c: dev: check return value when calling dev_set_name()

- 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.27%, higher than 19% of CVEs (2026-12-01)
- Published: 2025-02-26T01:54:22.837Z
- Modified: 2026-11-05T20:16:56.403Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 1413ef638abae4ab5621901cf4d8ef08a4a48ba6 before 2e539b17d4cbe5fb8b5152dd9a6e4a8828f97db2; from 1413ef638abae4ab5621901cf4d8ef08a4a48ba6 before 2f345bb14ad4744950499ff222e2899209297afa; from 1413ef638abae4ab5621901cf4d8ef08a4a48ba6 before c74d77a2d07744147d734138acd6ce9dba715e5d; from 1413ef638abae4ab5621901cf4d8ef08a4a48ba6 before 993eb48fa199b5f476df8204e652eff63dd19361; 1c1b4327970c79c1a2d0c3becfc12b9696177c55; c0d34399045609eda76882fa6d01fdfaf5b20d38; f1f3b4150baf7c3aa6b4e6b81b8ff1909996d507; a612c4ece2eb757011ae88a8410b48e523220b8d; 1bed86cfe5cb4529d036a14980d379aee8539982; 8a231148135d2d08a3ef721d438cd468ea4209d2; from 4.4.225 before 4.5; from 4.9.225 before 4.10; and 5 more (not affected: before 5.7; from 5.10.236 up to 5.10.*; from 5.15.35 up to 5.15.*; from 5.17.4 up to 5.17.*; from 5.18 up to *)
- linux linux_kernel: from 4.4.225 before 4.5; from 4.9.225 before 4.10; from 4.14.182 before 4.15; from 4.19.125 before 4.20; from 5.4.43 before 5.5; from 5.6.15 before 5.15.35; from 5.16 before 5.17.4; 5.18

## References

- <https://git.kernel.org/stable/c/2e539b17d4cbe5fb8b5152dd9a6e4a8828f97db2>
- <https://git.kernel.org/stable/c/2f345bb14ad4744950499ff222e2899209297afa> (patch)
- <https://git.kernel.org/stable/c/c74d77a2d07744147d734138acd6ce9dba715e5d> (patch)
- <https://git.kernel.org/stable/c/993eb48fa199b5f476df8204e652eff63dd19361> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html>

## Sources

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

---

Page: https://cve.day/CVE-2022-49046 · Whole record: https://cve.day/CVE-2022-49046.json · Rebuilt by cve.day 2026-11-25T22:58:20.114Z
