CVE-2022-49046Published Feb 26, 2025 · Feb 26Updated 2d ago
i2c: dev: check return value when calling dev_set_name()
Linux
Medium5.5Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel i2c dev code did not check whether dev_set_name() failed. If it failed, dev_name() could be null, leading to a null-pointer dereference. The input does not specify attacker access requirements or user interaction.
Engineers running the Linux kernel should check their deployments; affected versions are not specified.