{"id":"CVE-2022-49010","aliases":["CVE-2022-49010"],"related":[],"kind":"vulnerability","state":"published","title":"hwmon: (coretemp) Check for null before removing sysfs attrs","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nhwmon: (coretemp) Check for null before removing sysfs attrs\n\nIf coretemp_add_core() gets an error then pdata->core_data[indx]\nis already NULL and has been kfreed. Don't pass that to\nsysfs_remove_group() as that will crash in sysfs_remove_group().\n\n[Shortened for readability]\n[91854.020159] sysfs: cannot create duplicate filename '/devices/platform/coretemp.0/hwmon/hwmon2/temp20_label'\n<cpu offline>\n[91855.126115] BUG: kernel NULL pointer dereference, address: 0000000000000188\n[91855.165103] #PF: supervisor read access in kernel mode\n[91855.194506] #PF: error_code(0x0000) - not-present page\n[91855.224445] PGD 0 P4D 0\n[91855.238508] Oops: 0000 [#1] PREEMPT SMP PTI\n...\n[91855.342716] RIP: 0010:sysfs_remove_group+0xc/0x80\n...\n[91855.796571] Call Trace:\n[91855.810524]  coretemp_cpu_offline+0x12b/0x1dd [coretemp]\n[91855.841738]  ? coretemp_cpu_online+0x180/0x180 [coretemp]\n[91855.871107]  cpuhp_invoke_callback+0x105/0x4b0\n[91855.893432]  cpuhp_thread_fun+0x8e/0x150\n...\n\nFix this by checking for NULL first.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nhwmon: (coretemp) Check for null before removing sysfs attrs\n\nIf coretemp_add_core() gets an error then pdata->core_data[indx]\nis already NULL and has been kfreed. Don't pass that to\nsysfs_remove_group() as that will crash in sysfs_remove_group().\n\n[Shortened for readability]\n[91854.020159] sysfs: cannot create duplicate filename '/devices/platform/coretemp.0/hwmon/hwmon2/temp20_label'\n<cpu offline>\n[91855.126115] BUG: kernel NULL pointer dereference, address: 0000000000000188\n[91855.165103] #PF: supervisor read access in kernel mode\n[91855.194506] #PF: error_code(0x0000) - not-present page\n[91855.224445] PGD 0 P4D 0\n[91855.238508] Oops: 0000 [#1] PREEMPT SMP PTI\n...\n[91855.342716] RIP: 0010:sysfs_remove_group+0xc/0x80\n...\n[91855.796571] Call Trace:\n[91855.810524]  coretemp_cpu_offline+0x12b/0x1dd [coretemp]\n[91855.841738]  ? coretemp_cpu_online+0x180/0x180 [coretemp]\n[91855.871107]  cpuhp_invoke_callback+0x105/0x4b0\n[91855.893432]  cpuhp_thread_fun+0x8e/0x150\n...\n\nFix this by checking for NULL first.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: hwmon: (coretemp) Verificar si hay valores nulos antes de eliminar los atributos de sysfs Si coretemp_add_core() obtiene un error, entonces pdata-&gt;core_data[indx] ya es NULL y se ha liberado. No pase eso a sysfs_remove_group() ya que eso bloqueará sysfs_remove_group(). [Abreviado para facilitar la lectura] [91854.020159] sysfs: no se puede crear un nombre de archivo duplicado '/devices/platform/coretemp.0/hwmon/hwmon2/temp20_label'  [91855.126115] ERROR: desreferencia de puntero NULL del kernel, dirección: 0000000000000188 [91855.165103] #PF: acceso de lectura del supervisor en modo kernel [91855.194506] #PF: error_code(0x0000) - página no presente [91855.224445] PGD 0 P4D 0 [91855.238508] Oops: 0000 [#1] PREEMPT SMP PTI ... [91855.342716] RIP: 0010:sysfs_remove_group+0xc/0x80 ... [91855.796571] Seguimiento de llamadas: [91855.810524] coretemp_cpu_offline+0x12b/0x1dd [coretemp] [91855.841738] ? coretemp_cpu_online+0x180/0x180 [coretemp] [91855.871107] cpuhp_invoke_callback+0x105/0x4b0 [91855.893432] cpuhp_thread_fun+0x8e/0x150 ... Solucione esto comprobando primero si es NULL.","source":"nvd"}],"published":"2024-10-21T20:06:21.423Z","modified":"2026-06-17T05:16:50.547Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-476"],"affected":[{"ranges":[{"type":"git","introduced":"199e0de7f5df31a4fc485d4aaaf8a07718252ace","fixed":"fb503d077ff7b43913503eaf72995d1239028b99","status":"affected"},{"type":"git","introduced":"199e0de7f5df31a4fc485d4aaaf8a07718252ace","fixed":"070d5ea4a0592a37ad96ce7f7b6b024f90bb009f","status":"affected"},{"type":"git","introduced":"199e0de7f5df31a4fc485d4aaaf8a07718252ace","fixed":"280110db1a7d62ad635b103bafc3ae96e8bef75c","status":"affected"},{"type":"git","introduced":"199e0de7f5df31a4fc485d4aaaf8a07718252ace","fixed":"89eecabe6a47403237f45aafd7d24f93cb973653","status":"affected"},{"type":"git","introduced":"199e0de7f5df31a4fc485d4aaaf8a07718252ace","fixed":"f06e0cd01eab954bd5f2190c9faa79bb5357e05b","status":"affected"},{"type":"git","introduced":"199e0de7f5df31a4fc485d4aaaf8a07718252ace","fixed":"7692700ac818866d138a8de555130a6e70e6ac16","status":"affected"},{"type":"git","introduced":"199e0de7f5df31a4fc485d4aaaf8a07718252ace","fixed":"ae6c8b6e5d5628df1c475c0a8fca1465e205c95b","status":"affected"},{"type":"git","introduced":"199e0de7f5df31a4fc485d4aaaf8a07718252ace","fixed":"a89ff5f5cc64b9fe7a992cf56988fd36f56ca82a","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.0","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.0","status":"unaffected"},{"type":"semver","introduced":"4.9.335","lastAffected":"4.9.*","status":"unaffected"},{"type":"semver","introduced":"4.14.301","lastAffected":"4.14.*","status":"unaffected"},{"type":"semver","introduced":"4.19.268","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.226","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.158","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.82","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.0.12","lastAffected":"6.0.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"3.0","fixed":"4.9.335"},{"status":"affected","introduced":"4.10","fixed":"4.14.301"},{"status":"affected","introduced":"4.15","fixed":"4.19.268"},{"status":"affected","introduced":"4.20","fixed":"5.4.226"},{"status":"affected","introduced":"5.5","fixed":"5.10.158"},{"status":"affected","introduced":"5.11","fixed":"5.15.82"},{"status":"affected","introduced":"5.16","fixed":"6.0.12"},{"status":"affected","version":"6.1"},{"status":"affected","version":"6.1"},{"status":"affected","version":"6.1"},{"status":"affected","version":"6.1"},{"status":"affected","version":"6.1"},{"status":"affected","version":"6.1"},{"status":"affected","version":"6.1"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/fb503d077ff7b43913503eaf72995d1239028b99","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/070d5ea4a0592a37ad96ce7f7b6b024f90bb009f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/280110db1a7d62ad635b103bafc3ae96e8bef75c","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/89eecabe6a47403237f45aafd7d24f93cb973653","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f06e0cd01eab954bd5f2190c9faa79bb5357e05b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7692700ac818866d138a8de555130a6e70e6ac16","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ae6c8b6e5d5628df1c475c0a8fca1465e205c95b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a89ff5f5cc64b9fe7a992cf56988fd36f56ca82a","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-10-22T13:13:58.658Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-49010","url":"https://www.cve.org/CVERecord?id=CVE-2022-49010","licence":"CVE Terms of Use","modified":"2026-05-11T18:51:27.659Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-49010","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49010","licence":"Public domain","modified":"2026-06-17T05:16:50.547Z"}],"updatedAt":"2026-11-25T22:58:20.030Z","epss":{"score":0.00236,"percentile":0.15567,"date":"2026-12-02T12:00:21.000Z"}}