NetSight
medium5.5

CVE-2022-49046

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

Impact

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 products

VendorProductAffected versions
LinuxLinux 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

Weakness classification

References