---
id: CVE-2022-49046
title: 'i2c: dev: check return value when calling dev_set_name()'
summary: |-
  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-pt…
severity: none
vendor: Linux
product: Linux
affected:
  - >-
    Linux >= 1413ef638abae4ab5621901cf4d8ef08a4a48ba6 <
    2e539b17d4cbe5fb8b5152dd9a6e4a8828f97db2
  - >-
    Linux >= 1413ef638abae4ab5621901cf4d8ef08a4a48ba6 <
    2f345bb14ad4744950499ff222e2899209297afa
  - >-
    Linux >= 1413ef638abae4ab5621901cf4d8ef08a4a48ba6 <
    c74d77a2d07744147d734138acd6ce9dba715e5d
  - >-
    Linux >= 1413ef638abae4ab5621901cf4d8ef08a4a48ba6 <
    993eb48fa199b5f476df8204e652eff63dd19361
  - Linux 1c1b4327970c79c1a2d0c3becfc12b9696177c55
  - Linux c0d34399045609eda76882fa6d01fdfaf5b20d38
  - Linux f1f3b4150baf7c3aa6b4e6b81b8ff1909996d507
  - Linux a612c4ece2eb757011ae88a8410b48e523220b8d
  - Linux 1bed86cfe5cb4529d036a14980d379aee8539982
  - Linux 8a231148135d2d08a3ef721d438cd468ea4209d2
  - Linux >= 4.4.225 < 4.5
  - Linux >= 4.9.225 < 4.10
  - Linux >= 4.14.182 < 4.15
  - Linux >= 4.19.125 < 4.20
  - Linux >= 5.4.43 < 5.5
  - Linux >= 5.6.15 < 5.7
  - Linux 5.7
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-11-05T19:42:37.124236Z'
published: '2025-02-26'
updated: '2026-11-05'
sourceUpdated: '2026-11-05T19:49:35.657Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2022-49046'
references:
  - url: 'https://git.kernel.org/stable/c/2e539b17d4cbe5fb8b5152dd9a6e4a8828f97db2'
  - url: 'https://git.kernel.org/stable/c/2f345bb14ad4744950499ff222e2899209297afa'
  - url: 'https://git.kernel.org/stable/c/c74d77a2d07744147d734138acd6ce9dba715e5d'
  - url: 'https://git.kernel.org/stable/c/993eb48fa199b5f476df8204e652eff63dd19361'
tags:
  - cve.org
epss: 0.00264
epssPercentile: 0.18465
ingestedAt: '2026-11-05T22:38:31.562Z'
---

## Overview

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.

## Affected

- `Linux >= 1413ef638abae4ab5621901cf4d8ef08a4a48ba6 < 2e539b17d4cbe5fb8b5152dd9a6e4a8828f97db2`
- `Linux >= 1413ef638abae4ab5621901cf4d8ef08a4a48ba6 < 2f345bb14ad4744950499ff222e2899209297afa`
- `Linux >= 1413ef638abae4ab5621901cf4d8ef08a4a48ba6 < c74d77a2d07744147d734138acd6ce9dba715e5d`
- `Linux >= 1413ef638abae4ab5621901cf4d8ef08a4a48ba6 < 993eb48fa199b5f476df8204e652eff63dd19361`
- `Linux 1c1b4327970c79c1a2d0c3becfc12b9696177c55`
- `Linux c0d34399045609eda76882fa6d01fdfaf5b20d38`
- `Linux f1f3b4150baf7c3aa6b4e6b81b8ff1909996d507`
- `Linux a612c4ece2eb757011ae88a8410b48e523220b8d`
- `Linux 1bed86cfe5cb4529d036a14980d379aee8539982`
- `Linux 8a231148135d2d08a3ef721d438cd468ea4209d2`
- `Linux >= 4.4.225 < 4.5`
- `Linux >= 4.9.225 < 4.10`
- `Linux >= 4.14.182 < 4.15`
- `Linux >= 4.19.125 < 4.20`
- `Linux >= 5.4.43 < 5.5`
- `Linux >= 5.6.15 < 5.7`
- `Linux 5.7`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
