{"id":"CVE-2022-49046","summary":"i2c: dev: check return value when calling dev_set_name()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ni2c: dev: check return value when calling dev_set_name()\n\nIf dev_set_name() fails, the dev_name() is null, check the return\nvalue of dev_set_name() to avoid the null-ptr-deref.","modified":"2026-04-02T08:27:15.018794Z","published":"2025-02-26T01:54:22.837Z","related":["SUSE-SU-2025:1293-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49046.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/2e539b17d4cbe5fb8b5152dd9a6e4a8828f97db2"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2f345bb14ad4744950499ff222e2899209297afa"},{"type":"WEB","url":"https://git.kernel.org/stable/c/993eb48fa199b5f476df8204e652eff63dd19361"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c74d77a2d07744147d734138acd6ce9dba715e5d"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49046.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49046"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"1413ef638abae4ab5621901cf4d8ef08a4a48ba6"},{"fixed":"2e539b17d4cbe5fb8b5152dd9a6e4a8828f97db2"},{"fixed":"2f345bb14ad4744950499ff222e2899209297afa"},{"fixed":"c74d77a2d07744147d734138acd6ce9dba715e5d"},{"fixed":"993eb48fa199b5f476df8204e652eff63dd19361"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"0"},{"last_affected":"1c1b4327970c79c1a2d0c3becfc12b9696177c55"},{"last_affected":"c0d34399045609eda76882fa6d01fdfaf5b20d38"},{"last_affected":"f1f3b4150baf7c3aa6b4e6b81b8ff1909996d507"},{"last_affected":"a612c4ece2eb757011ae88a8410b48e523220b8d"},{"last_affected":"1bed86cfe5cb4529d036a14980d379aee8539982"},{"last_affected":"8a231148135d2d08a3ef721d438cd468ea4209d2"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49046.json"}}],"schema_version":"1.7.5"}