cve-2024-47705
Vulnerability from cvelistv5
Published
2024-10-21 11:53
Modified
2024-12-19 09:26
Severity ?
Summary
In the Linux kernel, the following vulnerability has been resolved: block: fix potential invalid pointer dereference in blk_add_partition The blk_add_partition() function initially used a single if-condition (IS_ERR(part)) to check for errors when adding a partition. This was modified to handle the specific case of -ENXIO separately, allowing the function to proceed without logging the error in this case. However, this change unintentionally left a path where md_autodetect_dev() could be called without confirming that part is a valid pointer. This commit separates the error handling logic by splitting the initial if-condition, improving code readability and handling specific error scenarios explicitly. The function now distinguishes the general error case from -ENXIO without altering the existing behavior of md_autodetect_dev() calls.
Impacted products
Vendor Product Version
Linux Linux Version: b72053072c0bbe9f1cdfe2ffa3c201c185da2201
Version: b72053072c0bbe9f1cdfe2ffa3c201c185da2201
Version: b72053072c0bbe9f1cdfe2ffa3c201c185da2201
Version: b72053072c0bbe9f1cdfe2ffa3c201c185da2201
Version: b72053072c0bbe9f1cdfe2ffa3c201c185da2201
Version: b72053072c0bbe9f1cdfe2ffa3c201c185da2201
Version: b72053072c0bbe9f1cdfe2ffa3c201c185da2201
Create a notification for this product.
   Linux Linux Version: 5.5
Create a notification for this product.
Show details on NVD website


{
   containers: {
      adp: [
         {
            metrics: [
               {
                  other: {
                     content: {
                        id: "CVE-2024-47705",
                        options: [
                           {
                              Exploitation: "none",
                           },
                           {
                              Automatable: "no",
                           },
                           {
                              "Technical Impact": "partial",
                           },
                        ],
                        role: "CISA Coordinator",
                        timestamp: "2024-10-21T13:04:01.361907Z",
                        version: "2.0.3",
                     },
                     type: "ssvc",
                  },
               },
            ],
            providerMetadata: {
               dateUpdated: "2024-10-21T13:04:19.823Z",
               orgId: "134c704f-9b21-4f2e-91b3-4a467353bcc0",
               shortName: "CISA-ADP",
            },
            title: "CISA ADP Vulnrichment",
         },
      ],
      cna: {
         affected: [
            {
               defaultStatus: "unaffected",
               product: "Linux",
               programFiles: [
                  "block/partitions/core.c",
               ],
               repo: "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
               vendor: "Linux",
               versions: [
                  {
                     lessThan: "4bc4272e2506941c3f3d4fb8b0c659ee814dcf6f",
                     status: "affected",
                     version: "b72053072c0bbe9f1cdfe2ffa3c201c185da2201",
                     versionType: "git",
                  },
                  {
                     lessThan: "cc4d21d9492db4e534d3e01253cf885c90dd2a8b",
                     status: "affected",
                     version: "b72053072c0bbe9f1cdfe2ffa3c201c185da2201",
                     versionType: "git",
                  },
                  {
                     lessThan: "64cf2a39202ca2d9df5ee70eb310b6141ce2b8ed",
                     status: "affected",
                     version: "b72053072c0bbe9f1cdfe2ffa3c201c185da2201",
                     versionType: "git",
                  },
                  {
                     lessThan: "80f5bfbb80ea1615290dbc24f49d3d8c86db58fe",
                     status: "affected",
                     version: "b72053072c0bbe9f1cdfe2ffa3c201c185da2201",
                     versionType: "git",
                  },
                  {
                     lessThan: "652039ba477c9a4ab43740cf2cb0d068d53508c2",
                     status: "affected",
                     version: "b72053072c0bbe9f1cdfe2ffa3c201c185da2201",
                     versionType: "git",
                  },
                  {
                     lessThan: "afe53ea9b378c376101d99d216f13b6256f75189",
                     status: "affected",
                     version: "b72053072c0bbe9f1cdfe2ffa3c201c185da2201",
                     versionType: "git",
                  },
                  {
                     lessThan: "26e197b7f9240a4ac301dd0ad520c0c697c2ea7d",
                     status: "affected",
                     version: "b72053072c0bbe9f1cdfe2ffa3c201c185da2201",
                     versionType: "git",
                  },
               ],
            },
            {
               defaultStatus: "affected",
               product: "Linux",
               programFiles: [
                  "block/partitions/core.c",
               ],
               repo: "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
               vendor: "Linux",
               versions: [
                  {
                     status: "affected",
                     version: "5.5",
                  },
                  {
                     lessThan: "5.5",
                     status: "unaffected",
                     version: "0",
                     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.54",
                     versionType: "semver",
                  },
                  {
                     lessThanOrEqual: "6.10.*",
                     status: "unaffected",
                     version: "6.10.13",
                     versionType: "semver",
                  },
                  {
                     lessThanOrEqual: "6.11.*",
                     status: "unaffected",
                     version: "6.11.2",
                     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\nblock: fix potential invalid pointer dereference in blk_add_partition\n\nThe blk_add_partition() function initially used a single if-condition\n(IS_ERR(part)) to check for errors when adding a partition. This was\nmodified to handle the specific case of -ENXIO separately, allowing the\nfunction to proceed without logging the error in this case. However,\nthis change unintentionally left a path where md_autodetect_dev()\ncould be called without confirming that part is a valid pointer.\n\nThis commit separates the error handling logic by splitting the\ninitial if-condition, improving code readability and handling specific\nerror scenarios explicitly. The function now distinguishes the general\nerror case from -ENXIO without altering the existing behavior of\nmd_autodetect_dev() calls.",
            },
         ],
         providerMetadata: {
            dateUpdated: "2024-12-19T09:26:28.188Z",
            orgId: "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            shortName: "Linux",
         },
         references: [
            {
               url: "https://git.kernel.org/stable/c/4bc4272e2506941c3f3d4fb8b0c659ee814dcf6f",
            },
            {
               url: "https://git.kernel.org/stable/c/cc4d21d9492db4e534d3e01253cf885c90dd2a8b",
            },
            {
               url: "https://git.kernel.org/stable/c/64cf2a39202ca2d9df5ee70eb310b6141ce2b8ed",
            },
            {
               url: "https://git.kernel.org/stable/c/80f5bfbb80ea1615290dbc24f49d3d8c86db58fe",
            },
            {
               url: "https://git.kernel.org/stable/c/652039ba477c9a4ab43740cf2cb0d068d53508c2",
            },
            {
               url: "https://git.kernel.org/stable/c/afe53ea9b378c376101d99d216f13b6256f75189",
            },
            {
               url: "https://git.kernel.org/stable/c/26e197b7f9240a4ac301dd0ad520c0c697c2ea7d",
            },
         ],
         title: "block: fix potential invalid pointer dereference in blk_add_partition",
         x_generator: {
            engine: "bippy-5f407fcff5a0",
         },
      },
   },
   cveMetadata: {
      assignerOrgId: "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      assignerShortName: "Linux",
      cveId: "CVE-2024-47705",
      datePublished: "2024-10-21T11:53:40.071Z",
      dateReserved: "2024-09-30T16:00:12.946Z",
      dateUpdated: "2024-12-19T09:26:28.188Z",
      state: "PUBLISHED",
   },
   dataType: "CVE_RECORD",
   dataVersion: "5.1",
   "vulnerability-lookup:meta": {
      nvd: "{\"cve\":{\"id\":\"CVE-2024-47705\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2024-10-21T12:15:07.020\",\"lastModified\":\"2024-10-24T13:35:51.807\",\"vulnStatus\":\"Analyzed\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nblock: fix potential invalid pointer dereference in blk_add_partition\\n\\nThe blk_add_partition() function initially used a single if-condition\\n(IS_ERR(part)) to check for errors when adding a partition. This was\\nmodified to handle the specific case of -ENXIO separately, allowing the\\nfunction to proceed without logging the error in this case. However,\\nthis change unintentionally left a path where md_autodetect_dev()\\ncould be called without confirming that part is a valid pointer.\\n\\nThis commit separates the error handling logic by splitting the\\ninitial if-condition, improving code readability and handling specific\\nerror scenarios explicitly. The function now distinguishes the general\\nerror case from -ENXIO without altering the existing behavior of\\nmd_autodetect_dev() calls.\"},{\"lang\":\"es\",\"value\":\"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: block: fix potential no valid pointer dereference in blk_add_partition La función blk_add_partition() inicialmente usaba una sola condición if (IS_ERR(part)) para verificar errores al agregar una partición. Esto se modificó para manejar el caso específico de -ENXIO por separado, lo que permite que la función continúe sin registrar el error en este caso. Sin embargo, este cambio dejó involuntariamente una ruta donde se podía llamar a md_autodetect_dev() sin confirmar que part es un puntero válido. Esta confirmación separa la lógica de manejo de errores al dividir la condición if inicial, lo que mejora la legibilidad del código y maneja escenarios de error específicos de manera explícita. La función ahora distingue el caso de error general de -ENXIO sin alterar el comportamiento existente de las llamadas a md_autodetect_dev().\"}],\"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-476\"}]}],\"configurations\":[{\"nodes\":[{\"operator\":\"OR\",\"negate\":false,\"cpeMatch\":[{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"5.5\",\"versionEndExcluding\":\"5.10.227\",\"matchCriteriaId\":\"795A3EE6-0CAB-4409-A903-151C94ACECC0\"},{\"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.54\",\"matchCriteriaId\":\"D448821D-C085-4CAF-88FA-2DDE7BE21976\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"6.7\",\"versionEndExcluding\":\"6.10.13\",\"matchCriteriaId\":\"CE94BB8D-B0AB-4563-9ED7-A12122B56EBE\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"6.11\",\"versionEndExcluding\":\"6.11.2\",\"matchCriteriaId\":\"AB755D26-97F4-43B6-8604-CD076811E181\"}]}]}],\"references\":[{\"url\":\"https://git.kernel.org/stable/c/26e197b7f9240a4ac301dd0ad520c0c697c2ea7d\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/4bc4272e2506941c3f3d4fb8b0c659ee814dcf6f\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/64cf2a39202ca2d9df5ee70eb310b6141ce2b8ed\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/652039ba477c9a4ab43740cf2cb0d068d53508c2\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/80f5bfbb80ea1615290dbc24f49d3d8c86db58fe\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/afe53ea9b378c376101d99d216f13b6256f75189\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/cc4d21d9492db4e534d3e01253cf885c90dd2a8b\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]}]}}",
      vulnrichment: {
         containers: "{\"adp\": [{\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2024-47705\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"partial\"}], \"version\": \"2.0.3\", \"timestamp\": \"2024-10-21T13:04:01.361907Z\"}}}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2024-10-21T13:04:04.530Z\"}}], \"cna\": {\"title\": \"block: fix potential invalid pointer dereference in blk_add_partition\", \"affected\": [{\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"b72053072c0bbe9f1cdfe2ffa3c201c185da2201\", \"lessThan\": \"4bc4272e2506941c3f3d4fb8b0c659ee814dcf6f\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"b72053072c0bbe9f1cdfe2ffa3c201c185da2201\", \"lessThan\": \"cc4d21d9492db4e534d3e01253cf885c90dd2a8b\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"b72053072c0bbe9f1cdfe2ffa3c201c185da2201\", \"lessThan\": \"64cf2a39202ca2d9df5ee70eb310b6141ce2b8ed\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"b72053072c0bbe9f1cdfe2ffa3c201c185da2201\", \"lessThan\": \"80f5bfbb80ea1615290dbc24f49d3d8c86db58fe\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"b72053072c0bbe9f1cdfe2ffa3c201c185da2201\", \"lessThan\": \"652039ba477c9a4ab43740cf2cb0d068d53508c2\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"b72053072c0bbe9f1cdfe2ffa3c201c185da2201\", \"lessThan\": \"afe53ea9b378c376101d99d216f13b6256f75189\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"b72053072c0bbe9f1cdfe2ffa3c201c185da2201\", \"lessThan\": \"26e197b7f9240a4ac301dd0ad520c0c697c2ea7d\", \"versionType\": \"git\"}], \"programFiles\": [\"block/partitions/core.c\"], \"defaultStatus\": \"unaffected\"}, {\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"5.5\"}, {\"status\": \"unaffected\", \"version\": \"0\", \"lessThan\": \"5.5\", \"versionType\": \"semver\"}, {\"status\": \"unaffected\", \"version\": \"5.10.227\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.10.*\"}, {\"status\": \"unaffected\", \"version\": \"5.15.168\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.15.*\"}, {\"status\": \"unaffected\", \"version\": \"6.1.113\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.1.*\"}, {\"status\": \"unaffected\", \"version\": \"6.6.54\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.6.*\"}, {\"status\": \"unaffected\", \"version\": \"6.10.13\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.10.*\"}, {\"status\": \"unaffected\", \"version\": \"6.11.2\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.11.*\"}, {\"status\": \"unaffected\", \"version\": \"6.12\", \"versionType\": \"original_commit_for_fix\", \"lessThanOrEqual\": \"*\"}], \"programFiles\": [\"block/partitions/core.c\"], \"defaultStatus\": \"affected\"}], \"references\": [{\"url\": \"https://git.kernel.org/stable/c/4bc4272e2506941c3f3d4fb8b0c659ee814dcf6f\"}, {\"url\": \"https://git.kernel.org/stable/c/cc4d21d9492db4e534d3e01253cf885c90dd2a8b\"}, {\"url\": \"https://git.kernel.org/stable/c/64cf2a39202ca2d9df5ee70eb310b6141ce2b8ed\"}, {\"url\": \"https://git.kernel.org/stable/c/80f5bfbb80ea1615290dbc24f49d3d8c86db58fe\"}, {\"url\": \"https://git.kernel.org/stable/c/652039ba477c9a4ab43740cf2cb0d068d53508c2\"}, {\"url\": \"https://git.kernel.org/stable/c/afe53ea9b378c376101d99d216f13b6256f75189\"}, {\"url\": \"https://git.kernel.org/stable/c/26e197b7f9240a4ac301dd0ad520c0c697c2ea7d\"}], \"x_generator\": {\"engine\": \"bippy-5f407fcff5a0\"}, \"descriptions\": [{\"lang\": \"en\", \"value\": \"In the Linux kernel, the following vulnerability has been resolved:\\n\\nblock: fix potential invalid pointer dereference in blk_add_partition\\n\\nThe blk_add_partition() function initially used a single if-condition\\n(IS_ERR(part)) to check for errors when adding a partition. This was\\nmodified to handle the specific case of -ENXIO separately, allowing the\\nfunction to proceed without logging the error in this case. However,\\nthis change unintentionally left a path where md_autodetect_dev()\\ncould be called without confirming that part is a valid pointer.\\n\\nThis commit separates the error handling logic by splitting the\\ninitial if-condition, improving code readability and handling specific\\nerror scenarios explicitly. The function now distinguishes the general\\nerror case from -ENXIO without altering the existing behavior of\\nmd_autodetect_dev() calls.\"}], \"providerMetadata\": {\"orgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"shortName\": \"Linux\", \"dateUpdated\": \"2024-12-19T09:26:28.188Z\"}}}",
         cveMetadata: "{\"cveId\": \"CVE-2024-47705\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2024-12-19T09:26:28.188Z\", \"dateReserved\": \"2024-09-30T16:00:12.946Z\", \"assignerOrgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"datePublished\": \"2024-10-21T11:53:40.071Z\", \"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.