CVE-2022-49046

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

State
Published
Severity
Not scored
Published
Feb 26, 2025
Updated
May 23, 2026
Reserved
Feb 26, 2025

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 1413ef638abae4ab5621901cf4d8ef08a4a48ba6 to before 2e539b17d4cbe5fb8b5152dd9a6e4a8828f97db2Affected
  • 1413ef638abae4ab5621901cf4d8ef08a4a48ba6 to before 2f345bb14ad4744950499ff222e2899209297afaAffected
  • 1413ef638abae4ab5621901cf4d8ef08a4a48ba6 to before c74d77a2d07744147d734138acd6ce9dba715e5dAffected
  • 1413ef638abae4ab5621901cf4d8ef08a4a48ba6 to before 993eb48fa199b5f476df8204e652eff63dd19361Affected
  • 1c1b4327970c79c1a2d0c3becfc12b9696177c55Affected
  • c0d34399045609eda76882fa6d01fdfaf5b20d38Affected
  • f1f3b4150baf7c3aa6b4e6b81b8ff1909996d507Affected
  • a612c4ece2eb757011ae88a8410b48e523220b8dAffected
  • 1bed86cfe5cb4529d036a14980d379aee8539982Affected
  • 8a231148135d2d08a3ef721d438cd468ea4209d2Affected
  • 4.4.225 to before 4.5Affected
  • 4.9.225 to before 4.10Affected
  • 4.14.182 to before 4.15Affected
  • 4.19.125 to before 4.20Affected
  • 5.4.43 to before 5.5Affected
  • 5.6.15 to before 5.7Affected
LinuxLinux
  • 5.7Affected
  • before 5.7Not affected
  • 5.10.236 through 5.10.*Not affected
  • 5.15.35 through 5.15.*Not affected
  • 5.17.4 through 5.17.*Not affected
  • 5.18 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.