cve-2024-49955
Vulnerability from cvelistv5
Published
2024-10-21 18:02
Modified
2024-12-19 09:30
Severity ?
EPSS score ?
0.03% (0.04789)
Summary
In the Linux kernel, the following vulnerability has been resolved: ACPI: battery: Fix possible crash when unregistering a battery hook When a battery hook returns an error when adding a new battery, then the battery hook is automatically unregistered. However the battery hook provider cannot know that, so it will later call battery_hook_unregister() on the already unregistered battery hook, resulting in a crash. Fix this by using the list head to mark already unregistered battery hooks as already being unregistered so that they can be ignored by battery_hook_unregister().
Impacted products
Vendor Product Version
Linux Linux Version: fa93854f7a7ed63d054405bf3779247d5300edd3
Version: fa93854f7a7ed63d054405bf3779247d5300edd3
Version: fa93854f7a7ed63d054405bf3779247d5300edd3
Version: fa93854f7a7ed63d054405bf3779247d5300edd3
Version: fa93854f7a7ed63d054405bf3779247d5300edd3
Version: fa93854f7a7ed63d054405bf3779247d5300edd3
Version: fa93854f7a7ed63d054405bf3779247d5300edd3
Version: fa93854f7a7ed63d054405bf3779247d5300edd3
Version: fa93854f7a7ed63d054405bf3779247d5300edd3
Create a notification for this product.
   Linux Linux Version: 4.17
Create a notification for this product.
Show details on NVD website


{
   containers: {
      adp: [
         {
            metrics: [
               {
                  other: {
                     content: {
                        id: "CVE-2024-49955",
                        options: [
                           {
                              Exploitation: "none",
                           },
                           {
                              Automatable: "no",
                           },
                           {
                              "Technical Impact": "partial",
                           },
                        ],
                        role: "CISA Coordinator",
                        timestamp: "2024-10-22T13:35:51.725072Z",
                        version: "2.0.3",
                     },
                     type: "ssvc",
                  },
               },
            ],
            providerMetadata: {
               dateUpdated: "2024-10-22T13:38:48.563Z",
               orgId: "134c704f-9b21-4f2e-91b3-4a467353bcc0",
               shortName: "CISA-ADP",
            },
            title: "CISA ADP Vulnrichment",
         },
      ],
      cna: {
         affected: [
            {
               defaultStatus: "unaffected",
               product: "Linux",
               programFiles: [
                  "drivers/acpi/battery.c",
               ],
               repo: "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
               vendor: "Linux",
               versions: [
                  {
                     lessThan: "76fb2cbf01571926da8ecf6876cc8cb07d3f5183",
                     status: "affected",
                     version: "fa93854f7a7ed63d054405bf3779247d5300edd3",
                     versionType: "git",
                  },
                  {
                     lessThan: "c47843a831e0eae007ad7e848d208e675ba4c132",
                     status: "affected",
                     version: "fa93854f7a7ed63d054405bf3779247d5300edd3",
                     versionType: "git",
                  },
                  {
                     lessThan: "da964de4c18199e14b961b5b2e5e6570552a313c",
                     status: "affected",
                     version: "fa93854f7a7ed63d054405bf3779247d5300edd3",
                     versionType: "git",
                  },
                  {
                     lessThan: "07b98400cb0285a6348188aa8c5ec6a2ae0551f7",
                     status: "affected",
                     version: "fa93854f7a7ed63d054405bf3779247d5300edd3",
                     versionType: "git",
                  },
                  {
                     lessThan: "ca1fb7942a287b40659cc79551a1de54a2c2e7d5",
                     status: "affected",
                     version: "fa93854f7a7ed63d054405bf3779247d5300edd3",
                     versionType: "git",
                  },
                  {
                     lessThan: "ce31847f109c3a5b2abdd19d7bcaafaacfde53de",
                     status: "affected",
                     version: "fa93854f7a7ed63d054405bf3779247d5300edd3",
                     versionType: "git",
                  },
                  {
                     lessThan: "ca26e8eed9c1c6651f51f7fa38fe444f8573cd1b",
                     status: "affected",
                     version: "fa93854f7a7ed63d054405bf3779247d5300edd3",
                     versionType: "git",
                  },
                  {
                     lessThan: "9f469ef1c79dac7f9ac1518643a33703918f7e13",
                     status: "affected",
                     version: "fa93854f7a7ed63d054405bf3779247d5300edd3",
                     versionType: "git",
                  },
                  {
                     lessThan: "76959aff14a0012ad6b984ec7686d163deccdc16",
                     status: "affected",
                     version: "fa93854f7a7ed63d054405bf3779247d5300edd3",
                     versionType: "git",
                  },
               ],
            },
            {
               defaultStatus: "affected",
               product: "Linux",
               programFiles: [
                  "drivers/acpi/battery.c",
               ],
               repo: "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
               vendor: "Linux",
               versions: [
                  {
                     status: "affected",
                     version: "4.17",
                  },
                  {
                     lessThan: "4.17",
                     status: "unaffected",
                     version: "0",
                     versionType: "semver",
                  },
                  {
                     lessThanOrEqual: "4.19.*",
                     status: "unaffected",
                     version: "4.19.323",
                     versionType: "semver",
                  },
                  {
                     lessThanOrEqual: "5.4.*",
                     status: "unaffected",
                     version: "5.4.285",
                     versionType: "semver",
                  },
                  {
                     lessThanOrEqual: "5.10.*",
                     status: "unaffected",
                     version: "5.10.227",
                     versionType: "semver",
                  },
                  {
                     lessThanOrEqual: "5.15.*",
                     status: "unaffected",
                     version: "5.15.168",
                     versionType: "semver",
                  },
                  {
                     lessThanOrEqual: "6.1.*",
                     status: "unaffected",
                     version: "6.1.113",
                     versionType: "semver",
                  },
                  {
                     lessThanOrEqual: "6.6.*",
                     status: "unaffected",
                     version: "6.6.55",
                     versionType: "semver",
                  },
                  {
                     lessThanOrEqual: "6.10.*",
                     status: "unaffected",
                     version: "6.10.14",
                     versionType: "semver",
                  },
                  {
                     lessThanOrEqual: "6.11.*",
                     status: "unaffected",
                     version: "6.11.3",
                     versionType: "semver",
                  },
                  {
                     lessThanOrEqual: "*",
                     status: "unaffected",
                     version: "6.12",
                     versionType: "original_commit_for_fix",
                  },
               ],
            },
         ],
         descriptions: [
            {
               lang: "en",
               value: "In the Linux kernel, the following vulnerability has been resolved:\n\nACPI: battery: Fix possible crash when unregistering a battery hook\n\nWhen a battery hook returns an error when adding a new battery, then\nthe battery hook is automatically unregistered.\nHowever the battery hook provider cannot know that, so it will later\ncall battery_hook_unregister() on the already unregistered battery\nhook, resulting in a crash.\n\nFix this by using the list head to mark already unregistered battery\nhooks as already being unregistered so that they can be ignored by\nbattery_hook_unregister().",
            },
         ],
         providerMetadata: {
            dateUpdated: "2024-12-19T09:30:06.167Z",
            orgId: "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            shortName: "Linux",
         },
         references: [
            {
               url: "https://git.kernel.org/stable/c/76fb2cbf01571926da8ecf6876cc8cb07d3f5183",
            },
            {
               url: "https://git.kernel.org/stable/c/c47843a831e0eae007ad7e848d208e675ba4c132",
            },
            {
               url: "https://git.kernel.org/stable/c/da964de4c18199e14b961b5b2e5e6570552a313c",
            },
            {
               url: "https://git.kernel.org/stable/c/07b98400cb0285a6348188aa8c5ec6a2ae0551f7",
            },
            {
               url: "https://git.kernel.org/stable/c/ca1fb7942a287b40659cc79551a1de54a2c2e7d5",
            },
            {
               url: "https://git.kernel.org/stable/c/ce31847f109c3a5b2abdd19d7bcaafaacfde53de",
            },
            {
               url: "https://git.kernel.org/stable/c/ca26e8eed9c1c6651f51f7fa38fe444f8573cd1b",
            },
            {
               url: "https://git.kernel.org/stable/c/9f469ef1c79dac7f9ac1518643a33703918f7e13",
            },
            {
               url: "https://git.kernel.org/stable/c/76959aff14a0012ad6b984ec7686d163deccdc16",
            },
         ],
         title: "ACPI: battery: Fix possible crash when unregistering a battery hook",
         x_generator: {
            engine: "bippy-5f407fcff5a0",
         },
      },
   },
   cveMetadata: {
      assignerOrgId: "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      assignerShortName: "Linux",
      cveId: "CVE-2024-49955",
      datePublished: "2024-10-21T18:02:09.707Z",
      dateReserved: "2024-10-21T12:17:06.047Z",
      dateUpdated: "2024-12-19T09:30:06.167Z",
      state: "PUBLISHED",
   },
   dataType: "CVE_RECORD",
   dataVersion: "5.1",
   "vulnerability-lookup:meta": {
      nvd: "{\"cve\":{\"id\":\"CVE-2024-49955\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2024-10-21T18:15:16.833\",\"lastModified\":\"2024-11-08T16:15:33.663\",\"vulnStatus\":\"Modified\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nACPI: battery: Fix possible crash when unregistering a battery hook\\n\\nWhen a battery hook returns an error when adding a new battery, then\\nthe battery hook is automatically unregistered.\\nHowever the battery hook provider cannot know that, so it will later\\ncall battery_hook_unregister() on the already unregistered battery\\nhook, resulting in a crash.\\n\\nFix this by using the list head to mark already unregistered battery\\nhooks as already being unregistered so that they can be ignored by\\nbattery_hook_unregister().\"},{\"lang\":\"es\",\"value\":\"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: ACPI: batería: se corrige un posible fallo al anular el registro de un gancho de batería Cuando un gancho de batería devuelve un error al añadir una batería nueva, el gancho de batería se anula automáticamente el registro. Sin embargo, el proveedor del gancho de batería no puede saberlo, por lo que más tarde llamará a battery_hook_unregister() en el gancho de batería ya anulado, lo que provocará un fallo. Solucione esto utilizando el encabezado de lista para marcar los ganchos de batería ya anulados como ya anulados para que battery_hook_unregister() pueda ignorarlos.\"}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H\",\"baseScore\":5.5,\"baseSeverity\":\"MEDIUM\",\"attackVector\":\"LOCAL\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"LOW\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"NONE\",\"integrityImpact\":\"NONE\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":1.8,\"impactScore\":3.6}]},\"weaknesses\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"description\":[{\"lang\":\"en\",\"value\":\"CWE-672\"}]}],\"configurations\":[{\"nodes\":[{\"operator\":\"OR\",\"negate\":false,\"cpeMatch\":[{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"4.17\",\"versionEndExcluding\":\"5.10.227\",\"matchCriteriaId\":\"2E7C7F10-BDE9-4D62-9A04-76C54C5D4EAE\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"5.11\",\"versionEndExcluding\":\"5.15.168\",\"matchCriteriaId\":\"4D51C05D-455B-4D8D-89E7-A58E140B864C\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"5.16\",\"versionEndExcluding\":\"6.1.113\",\"matchCriteriaId\":\"D01BD22E-ACD1-4618-9D01-6116570BE1EE\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"6.2\",\"versionEndExcluding\":\"6.6.55\",\"matchCriteriaId\":\"E90B9576-56C4-47BC-AAB0-C5B2D438F5D0\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"6.7\",\"versionEndExcluding\":\"6.10.14\",\"matchCriteriaId\":\"4C16BCE0-FFA0-4599-BE0A-1FD65101C021\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"6.11\",\"versionEndExcluding\":\"6.11.3\",\"matchCriteriaId\":\"54D9C704-D679-41A7-9C40-10A6B1E7FFE9\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:6.12:rc1:*:*:*:*:*:*\",\"matchCriteriaId\":\"7F361E1D-580F-4A2D-A509-7615F73167A1\"}]}]}],\"references\":[{\"url\":\"https://git.kernel.org/stable/c/07b98400cb0285a6348188aa8c5ec6a2ae0551f7\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/76959aff14a0012ad6b984ec7686d163deccdc16\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/76fb2cbf01571926da8ecf6876cc8cb07d3f5183\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/9f469ef1c79dac7f9ac1518643a33703918f7e13\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/c47843a831e0eae007ad7e848d208e675ba4c132\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/ca1fb7942a287b40659cc79551a1de54a2c2e7d5\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/ca26e8eed9c1c6651f51f7fa38fe444f8573cd1b\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/ce31847f109c3a5b2abdd19d7bcaafaacfde53de\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/da964de4c18199e14b961b5b2e5e6570552a313c\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]}]}}",
      vulnrichment: {
         containers: "{\"adp\": [{\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2024-49955\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"partial\"}], \"version\": \"2.0.3\", \"timestamp\": \"2024-10-22T13:35:51.725072Z\"}}}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2024-10-22T13:35:54.759Z\"}}], \"cna\": {\"title\": \"ACPI: battery: Fix possible crash when unregistering a battery hook\", \"affected\": [{\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"fa93854f7a7e\", \"lessThan\": \"da964de4c181\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"fa93854f7a7e\", \"lessThan\": \"07b98400cb02\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"fa93854f7a7e\", \"lessThan\": \"ca1fb7942a28\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"fa93854f7a7e\", \"lessThan\": \"ce31847f109c\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"fa93854f7a7e\", \"lessThan\": \"ca26e8eed9c1\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"fa93854f7a7e\", \"lessThan\": \"9f469ef1c79d\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"fa93854f7a7e\", \"lessThan\": \"76959aff14a0\", \"versionType\": \"git\"}], \"programFiles\": [\"drivers/acpi/battery.c\"], \"defaultStatus\": \"unaffected\"}, {\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"4.17\"}, {\"status\": \"unaffected\", \"version\": \"0\", \"lessThan\": \"4.17\", \"versionType\": \"custom\"}, {\"status\": \"unaffected\", \"version\": \"5.10.227\", \"versionType\": \"custom\", \"lessThanOrEqual\": \"5.10.*\"}, {\"status\": \"unaffected\", \"version\": \"5.15.168\", \"versionType\": \"custom\", \"lessThanOrEqual\": \"5.15.*\"}, {\"status\": \"unaffected\", \"version\": \"6.1.113\", \"versionType\": \"custom\", \"lessThanOrEqual\": \"6.1.*\"}, {\"status\": \"unaffected\", \"version\": \"6.6.55\", \"versionType\": \"custom\", \"lessThanOrEqual\": \"6.6.*\"}, {\"status\": \"unaffected\", \"version\": \"6.10.14\", \"versionType\": \"custom\", \"lessThanOrEqual\": \"6.10.*\"}, {\"status\": \"unaffected\", \"version\": \"6.11.3\", \"versionType\": \"custom\", \"lessThanOrEqual\": \"6.11.*\"}, {\"status\": \"unaffected\", \"version\": \"6.12-rc2\", \"versionType\": \"original_commit_for_fix\", \"lessThanOrEqual\": \"*\"}], \"programFiles\": [\"drivers/acpi/battery.c\"], \"defaultStatus\": \"affected\"}], \"references\": [{\"url\": \"https://git.kernel.org/stable/c/da964de4c18199e14b961b5b2e5e6570552a313c\"}, {\"url\": \"https://git.kernel.org/stable/c/07b98400cb0285a6348188aa8c5ec6a2ae0551f7\"}, {\"url\": \"https://git.kernel.org/stable/c/ca1fb7942a287b40659cc79551a1de54a2c2e7d5\"}, {\"url\": \"https://git.kernel.org/stable/c/ce31847f109c3a5b2abdd19d7bcaafaacfde53de\"}, {\"url\": \"https://git.kernel.org/stable/c/ca26e8eed9c1c6651f51f7fa38fe444f8573cd1b\"}, {\"url\": \"https://git.kernel.org/stable/c/9f469ef1c79dac7f9ac1518643a33703918f7e13\"}, {\"url\": \"https://git.kernel.org/stable/c/76959aff14a0012ad6b984ec7686d163deccdc16\"}], \"x_generator\": {\"engine\": \"bippy-c9c4e1df01b2\"}, \"descriptions\": [{\"lang\": \"en\", \"value\": \"In the Linux kernel, the following vulnerability has been resolved:\\n\\nACPI: battery: Fix possible crash when unregistering a battery hook\\n\\nWhen a battery hook returns an error when adding a new battery, then\\nthe battery hook is automatically unregistered.\\nHowever the battery hook provider cannot know that, so it will later\\ncall battery_hook_unregister() on the already unregistered battery\\nhook, resulting in a crash.\\n\\nFix this by using the list head to mark already unregistered battery\\nhooks as already being unregistered so that they can be ignored by\\nbattery_hook_unregister().\"}], \"providerMetadata\": {\"orgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"shortName\": \"Linux\", \"dateUpdated\": \"2024-10-21T18:02:09.707Z\"}}}",
         cveMetadata: "{\"cveId\": \"CVE-2024-49955\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2024-10-22T13:38:48.563Z\", \"dateReserved\": \"2024-10-21T12:17:06.047Z\", \"assignerOrgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"datePublished\": \"2024-10-21T18:02:09.707Z\", \"assignerShortName\": \"Linux\"}",
         dataType: "CVE_RECORD",
         dataVersion: "5.1",
      },
   },
}


Log in or create an account to share your comment.

Security Advisory comment format.

This schema specifies the format of a comment related to a security advisory.

UUIDv4 of the comment
UUIDv4 of the Vulnerability-Lookup instance
When the comment was created originally
When the comment was last updated
Title of the comment
Description of the comment
The identifier of the vulnerability (CVE ID, GHSA-ID, PYSEC ID, etc.).



Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.