CVE-2022-49010 (GCVE-0-2022-49010)

Vulnerability from cvelistv5 – Published: 2024-10-21 20:06 – Updated: 2025-05-04 08:27
VLAI?
Title
hwmon: (coretemp) Check for null before removing sysfs attrs
Summary
In the Linux kernel, the following vulnerability has been resolved: hwmon: (coretemp) Check for null before removing sysfs attrs If coretemp_add_core() gets an error then pdata->core_data[indx] is already NULL and has been kfreed. Don't pass that to sysfs_remove_group() as that will crash in sysfs_remove_group(). [Shortened for readability] [91854.020159] sysfs: cannot create duplicate filename '/devices/platform/coretemp.0/hwmon/hwmon2/temp20_label' <cpu offline> [91855.126115] BUG: kernel NULL pointer dereference, address: 0000000000000188 [91855.165103] #PF: supervisor read access in kernel mode [91855.194506] #PF: error_code(0x0000) - not-present page [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] Call Trace: [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 ... Fix this by checking for NULL first.
Severity ?
No CVSS data available.
Assigner
Impacted products
Vendor Product Version
Linux Linux Affected: 199e0de7f5df31a4fc485d4aaaf8a07718252ace , < fb503d077ff7b43913503eaf72995d1239028b99 (git)
Affected: 199e0de7f5df31a4fc485d4aaaf8a07718252ace , < 070d5ea4a0592a37ad96ce7f7b6b024f90bb009f (git)
Affected: 199e0de7f5df31a4fc485d4aaaf8a07718252ace , < 280110db1a7d62ad635b103bafc3ae96e8bef75c (git)
Affected: 199e0de7f5df31a4fc485d4aaaf8a07718252ace , < 89eecabe6a47403237f45aafd7d24f93cb973653 (git)
Affected: 199e0de7f5df31a4fc485d4aaaf8a07718252ace , < f06e0cd01eab954bd5f2190c9faa79bb5357e05b (git)
Affected: 199e0de7f5df31a4fc485d4aaaf8a07718252ace , < 7692700ac818866d138a8de555130a6e70e6ac16 (git)
Affected: 199e0de7f5df31a4fc485d4aaaf8a07718252ace , < ae6c8b6e5d5628df1c475c0a8fca1465e205c95b (git)
Affected: 199e0de7f5df31a4fc485d4aaaf8a07718252ace , < a89ff5f5cc64b9fe7a992cf56988fd36f56ca82a (git)
Create a notification for this product.
    Linux Linux Affected: 3.0
Unaffected: 0 , < 3.0 (semver)
Unaffected: 4.9.335 , ≤ 4.9.* (semver)
Unaffected: 4.14.301 , ≤ 4.14.* (semver)
Unaffected: 4.19.268 , ≤ 4.19.* (semver)
Unaffected: 5.4.226 , ≤ 5.4.* (semver)
Unaffected: 5.10.158 , ≤ 5.10.* (semver)
Unaffected: 5.15.82 , ≤ 5.15.* (semver)
Unaffected: 6.0.12 , ≤ 6.0.* (semver)
Unaffected: 6.1 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "adp": [
      {
        "metrics": [
          {
            "other": {
              "content": {
                "id": "CVE-2022-49010",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "partial"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2024-10-22T13:13:58.658832Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2024-10-22T13:18:38.960Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      }
    ],
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/hwmon/coretemp.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "fb503d077ff7b43913503eaf72995d1239028b99",
              "status": "affected",
              "version": "199e0de7f5df31a4fc485d4aaaf8a07718252ace",
              "versionType": "git"
            },
            {
              "lessThan": "070d5ea4a0592a37ad96ce7f7b6b024f90bb009f",
              "status": "affected",
              "version": "199e0de7f5df31a4fc485d4aaaf8a07718252ace",
              "versionType": "git"
            },
            {
              "lessThan": "280110db1a7d62ad635b103bafc3ae96e8bef75c",
              "status": "affected",
              "version": "199e0de7f5df31a4fc485d4aaaf8a07718252ace",
              "versionType": "git"
            },
            {
              "lessThan": "89eecabe6a47403237f45aafd7d24f93cb973653",
              "status": "affected",
              "version": "199e0de7f5df31a4fc485d4aaaf8a07718252ace",
              "versionType": "git"
            },
            {
              "lessThan": "f06e0cd01eab954bd5f2190c9faa79bb5357e05b",
              "status": "affected",
              "version": "199e0de7f5df31a4fc485d4aaaf8a07718252ace",
              "versionType": "git"
            },
            {
              "lessThan": "7692700ac818866d138a8de555130a6e70e6ac16",
              "status": "affected",
              "version": "199e0de7f5df31a4fc485d4aaaf8a07718252ace",
              "versionType": "git"
            },
            {
              "lessThan": "ae6c8b6e5d5628df1c475c0a8fca1465e205c95b",
              "status": "affected",
              "version": "199e0de7f5df31a4fc485d4aaaf8a07718252ace",
              "versionType": "git"
            },
            {
              "lessThan": "a89ff5f5cc64b9fe7a992cf56988fd36f56ca82a",
              "status": "affected",
              "version": "199e0de7f5df31a4fc485d4aaaf8a07718252ace",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/hwmon/coretemp.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "3.0"
            },
            {
              "lessThan": "3.0",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.9.*",
              "status": "unaffected",
              "version": "4.9.335",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.14.*",
              "status": "unaffected",
              "version": "4.14.301",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.19.*",
              "status": "unaffected",
              "version": "4.19.268",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.4.*",
              "status": "unaffected",
              "version": "5.4.226",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.158",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.82",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.0.*",
              "status": "unaffected",
              "version": "6.0.12",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.1",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.9.335",
                  "versionStartIncluding": "3.0",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.14.301",
                  "versionStartIncluding": "3.0",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.19.268",
                  "versionStartIncluding": "3.0",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.4.226",
                  "versionStartIncluding": "3.0",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.158",
                  "versionStartIncluding": "3.0",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.82",
                  "versionStartIncluding": "3.0",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.0.12",
                  "versionStartIncluding": "3.0",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1",
                  "versionStartIncluding": "3.0",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "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-\u003ecore_data[indx]\nis already NULL and has been kfreed. Don\u0027t 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 \u0027/devices/platform/coretemp.0/hwmon/hwmon2/temp20_label\u0027\n\u003ccpu offline\u003e\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."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-05-04T08:27:59.253Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/fb503d077ff7b43913503eaf72995d1239028b99"
        },
        {
          "url": "https://git.kernel.org/stable/c/070d5ea4a0592a37ad96ce7f7b6b024f90bb009f"
        },
        {
          "url": "https://git.kernel.org/stable/c/280110db1a7d62ad635b103bafc3ae96e8bef75c"
        },
        {
          "url": "https://git.kernel.org/stable/c/89eecabe6a47403237f45aafd7d24f93cb973653"
        },
        {
          "url": "https://git.kernel.org/stable/c/f06e0cd01eab954bd5f2190c9faa79bb5357e05b"
        },
        {
          "url": "https://git.kernel.org/stable/c/7692700ac818866d138a8de555130a6e70e6ac16"
        },
        {
          "url": "https://git.kernel.org/stable/c/ae6c8b6e5d5628df1c475c0a8fca1465e205c95b"
        },
        {
          "url": "https://git.kernel.org/stable/c/a89ff5f5cc64b9fe7a992cf56988fd36f56ca82a"
        }
      ],
      "title": "hwmon: (coretemp) Check for null before removing sysfs attrs",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2022-49010",
    "datePublished": "2024-10-21T20:06:21.423Z",
    "dateReserved": "2024-08-22T01:27:53.644Z",
    "dateUpdated": "2025-05-04T08:27:59.253Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1",
  "vulnerability-lookup:meta": {
    "vulnrichment": {
      "containers": "{\"adp\": [{\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2022-49010\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"partial\"}], \"version\": \"2.0.3\", \"timestamp\": \"2024-10-22T13:13:58.658832Z\"}}}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2024-10-22T13:14:01.890Z\"}}], \"cna\": {\"title\": \"hwmon: (coretemp) Check for null before removing sysfs attrs\", \"affected\": [{\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"199e0de7f5df31a4fc485d4aaaf8a07718252ace\", \"lessThan\": \"fb503d077ff7b43913503eaf72995d1239028b99\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"199e0de7f5df31a4fc485d4aaaf8a07718252ace\", \"lessThan\": \"070d5ea4a0592a37ad96ce7f7b6b024f90bb009f\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"199e0de7f5df31a4fc485d4aaaf8a07718252ace\", \"lessThan\": \"280110db1a7d62ad635b103bafc3ae96e8bef75c\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"199e0de7f5df31a4fc485d4aaaf8a07718252ace\", \"lessThan\": \"89eecabe6a47403237f45aafd7d24f93cb973653\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"199e0de7f5df31a4fc485d4aaaf8a07718252ace\", \"lessThan\": \"f06e0cd01eab954bd5f2190c9faa79bb5357e05b\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"199e0de7f5df31a4fc485d4aaaf8a07718252ace\", \"lessThan\": \"7692700ac818866d138a8de555130a6e70e6ac16\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"199e0de7f5df31a4fc485d4aaaf8a07718252ace\", \"lessThan\": \"ae6c8b6e5d5628df1c475c0a8fca1465e205c95b\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"199e0de7f5df31a4fc485d4aaaf8a07718252ace\", \"lessThan\": \"a89ff5f5cc64b9fe7a992cf56988fd36f56ca82a\", \"versionType\": \"git\"}], \"programFiles\": [\"drivers/hwmon/coretemp.c\"], \"defaultStatus\": \"unaffected\"}, {\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"3.0\"}, {\"status\": \"unaffected\", \"version\": \"0\", \"lessThan\": \"3.0\", \"versionType\": \"semver\"}, {\"status\": \"unaffected\", \"version\": \"4.9.335\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"4.9.*\"}, {\"status\": \"unaffected\", \"version\": \"4.14.301\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"4.14.*\"}, {\"status\": \"unaffected\", \"version\": \"4.19.268\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"4.19.*\"}, {\"status\": \"unaffected\", \"version\": \"5.4.226\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.4.*\"}, {\"status\": \"unaffected\", \"version\": \"5.10.158\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.10.*\"}, {\"status\": \"unaffected\", \"version\": \"5.15.82\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.15.*\"}, {\"status\": \"unaffected\", \"version\": \"6.0.12\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.0.*\"}, {\"status\": \"unaffected\", \"version\": \"6.1\", \"versionType\": \"original_commit_for_fix\", \"lessThanOrEqual\": \"*\"}], \"programFiles\": [\"drivers/hwmon/coretemp.c\"], \"defaultStatus\": \"affected\"}], \"references\": [{\"url\": \"https://git.kernel.org/stable/c/fb503d077ff7b43913503eaf72995d1239028b99\"}, {\"url\": \"https://git.kernel.org/stable/c/070d5ea4a0592a37ad96ce7f7b6b024f90bb009f\"}, {\"url\": \"https://git.kernel.org/stable/c/280110db1a7d62ad635b103bafc3ae96e8bef75c\"}, {\"url\": \"https://git.kernel.org/stable/c/89eecabe6a47403237f45aafd7d24f93cb973653\"}, {\"url\": \"https://git.kernel.org/stable/c/f06e0cd01eab954bd5f2190c9faa79bb5357e05b\"}, {\"url\": \"https://git.kernel.org/stable/c/7692700ac818866d138a8de555130a6e70e6ac16\"}, {\"url\": \"https://git.kernel.org/stable/c/ae6c8b6e5d5628df1c475c0a8fca1465e205c95b\"}, {\"url\": \"https://git.kernel.org/stable/c/a89ff5f5cc64b9fe7a992cf56988fd36f56ca82a\"}], \"x_generator\": {\"engine\": \"bippy-5f407fcff5a0\"}, \"descriptions\": [{\"lang\": \"en\", \"value\": \"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-\u003ecore_data[indx]\\nis already NULL and has been kfreed. Don\u0027t 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 \u0027/devices/platform/coretemp.0/hwmon/hwmon2/temp20_label\u0027\\n\u003ccpu offline\u003e\\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.\"}], \"providerMetadata\": {\"orgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"shortName\": \"Linux\", \"dateUpdated\": \"2024-12-19T08:12:23.232Z\"}}}",
      "cveMetadata": "{\"cveId\": \"CVE-2022-49010\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2024-12-19T08:12:23.232Z\", \"dateReserved\": \"2024-08-22T01:27:53.644Z\", \"assignerOrgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"datePublished\": \"2024-10-21T20:06:21.423Z\", \"assignerShortName\": \"Linux\"}",
      "dataType": "CVE_RECORD",
      "dataVersion": "5.1"
    }
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.


Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…