CVE-2022-49046
JSON

5.5medium

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

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.27% (higher than 19% of CVEs; EPSS, by FIRST)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 1413ef638abae4ab5621901cf4d8ef08a4a48ba6 before 2e539b17d4cbe5fb8b5152dd9a6e4a8828f97db2, from 1413ef638abae4ab5621901cf4d8ef08a4a48ba6 before 2f345bb14ad4744950499ff222e2899209297afa, from 1413ef638abae4ab5621901cf4d8ef08a4a48ba6 before c74d77a2d07744147d734138acd6ce9dba715e5d, from 1413ef638abae4ab5621901cf4d8ef08a4a48ba6 before 993eb48fa199b5f476df8204e652eff63dd19361, 1c1b4327970c79c1a2d0c3becfc12b9696177c55, c0d34399045609eda76882fa6d01fdfaf5b20d38, f1f3b4150baf7c3aa6b4e6b81b8ff1909996d507, a612c4ece2eb757011ae88a8410b48e523220b8d and 9 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 *
CVE List
linux linux_kernelfrom 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.18NVD

Classification

CWE-476

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: i2c: dev: verificar el valor de retorno al llamar a dev_set_name() Si dev_set_name() falla, dev_name() es nulo, verifique el valor de retorno de dev_set_name() para evitar el null-ptr-deref.

References

Sources

SourceRecordLicence
CVE ListCVE-2022-49046 changed 2026-11-05CVE Terms of Use
NVDCVE-2022-49046 changed 2026-11-05Public domain