cve-2024-50165
Vulnerability from cvelistv5
Published
2024-11-07 09:31
Modified
2024-12-19 09:34
Severity ?
Summary
In the Linux kernel, the following vulnerability has been resolved: bpf: Preserve param->string when parsing mount options In bpf_parse_param(), keep the value of param->string intact so it can be freed later. Otherwise, the kmalloc area pointed to by param->string will be leaked as shown below: unreferenced object 0xffff888118c46d20 (size 8): comm "new_name", pid 12109, jiffies 4295580214 hex dump (first 8 bytes): 61 6e 79 00 38 c9 5c 7e any.8.\~ backtrace (crc e1b7f876): [<00000000c6848ac7>] kmemleak_alloc+0x4b/0x80 [<00000000de9f7d00>] __kmalloc_node_track_caller_noprof+0x36e/0x4a0 [<000000003e29b886>] memdup_user+0x32/0xa0 [<0000000007248326>] strndup_user+0x46/0x60 [<0000000035b3dd29>] __x64_sys_fsconfig+0x368/0x3d0 [<0000000018657927>] x64_sys_call+0xff/0x9f0 [<00000000c0cabc95>] do_syscall_64+0x3b/0xc0 [<000000002f331597>] entry_SYSCALL_64_after_hwframe+0x4b/0x53
Impacted products
Vendor Product Version
Linux Linux Version: 6.9
Show details on NVD website


{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "kernel/bpf/inode.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "5d7a0a426540319327309035509cb768a2f5c2c4",
              "status": "affected",
              "version": "6c1752e0b6ca8c7021d6da3926738d8d88f601a9",
              "versionType": "git"
            },
            {
              "lessThan": "1f97c03f43fadc407de5b5cb01c07755053e1c22",
              "status": "affected",
              "version": "6c1752e0b6ca8c7021d6da3926738d8d88f601a9",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "kernel/bpf/inode.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.9"
            },
            {
              "lessThan": "6.9",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.11.*",
              "status": "unaffected",
              "version": "6.11.6",
              "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\nbpf: Preserve param-\u003estring when parsing mount options\n\nIn bpf_parse_param(), keep the value of param-\u003estring intact so it can\nbe freed later. Otherwise, the kmalloc area pointed to by param-\u003estring\nwill be leaked as shown below:\n\nunreferenced object 0xffff888118c46d20 (size 8):\n  comm \"new_name\", pid 12109, jiffies 4295580214\n  hex dump (first 8 bytes):\n    61 6e 79 00 38 c9 5c 7e                          any.8.\\~\n  backtrace (crc e1b7f876):\n    [\u003c00000000c6848ac7\u003e] kmemleak_alloc+0x4b/0x80\n    [\u003c00000000de9f7d00\u003e] __kmalloc_node_track_caller_noprof+0x36e/0x4a0\n    [\u003c000000003e29b886\u003e] memdup_user+0x32/0xa0\n    [\u003c0000000007248326\u003e] strndup_user+0x46/0x60\n    [\u003c0000000035b3dd29\u003e] __x64_sys_fsconfig+0x368/0x3d0\n    [\u003c0000000018657927\u003e] x64_sys_call+0xff/0x9f0\n    [\u003c00000000c0cabc95\u003e] do_syscall_64+0x3b/0xc0\n    [\u003c000000002f331597\u003e] entry_SYSCALL_64_after_hwframe+0x4b/0x53"
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2024-12-19T09:34:28.862Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/5d7a0a426540319327309035509cb768a2f5c2c4"
        },
        {
          "url": "https://git.kernel.org/stable/c/1f97c03f43fadc407de5b5cb01c07755053e1c22"
        }
      ],
      "title": "bpf: Preserve param-\u003estring when parsing mount options",
      "x_generator": {
        "engine": "bippy-5f407fcff5a0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2024-50165",
    "datePublished": "2024-11-07T09:31:41.923Z",
    "dateReserved": "2024-10-21T19:36:19.962Z",
    "dateUpdated": "2024-12-19T09:34:28.862Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1",
  "meta": {
    "nvd": "{\"cve\":{\"id\":\"CVE-2024-50165\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2024-11-07T10:15:07.770\",\"lastModified\":\"2024-11-22T16:53:05.527\",\"vulnStatus\":\"Analyzed\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nbpf: Preserve param-\u003estring when parsing mount options\\n\\nIn bpf_parse_param(), keep the value of param-\u003estring intact so it can\\nbe freed later. Otherwise, the kmalloc area pointed to by param-\u003estring\\nwill be leaked as shown below:\\n\\nunreferenced object 0xffff888118c46d20 (size 8):\\n  comm \\\"new_name\\\", pid 12109, jiffies 4295580214\\n  hex dump (first 8 bytes):\\n    61 6e 79 00 38 c9 5c 7e                          any.8.\\\\~\\n  backtrace (crc e1b7f876):\\n    [\u003c00000000c6848ac7\u003e] kmemleak_alloc+0x4b/0x80\\n    [\u003c00000000de9f7d00\u003e] __kmalloc_node_track_caller_noprof+0x36e/0x4a0\\n    [\u003c000000003e29b886\u003e] memdup_user+0x32/0xa0\\n    [\u003c0000000007248326\u003e] strndup_user+0x46/0x60\\n    [\u003c0000000035b3dd29\u003e] __x64_sys_fsconfig+0x368/0x3d0\\n    [\u003c0000000018657927\u003e] x64_sys_call+0xff/0x9f0\\n    [\u003c00000000c0cabc95\u003e] do_syscall_64+0x3b/0xc0\\n    [\u003c000000002f331597\u003e] entry_SYSCALL_64_after_hwframe+0x4b/0x53\"},{\"lang\":\"es\",\"value\":\"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: bpf: preservar param-\u0026gt;string al analizar las opciones de montaje. En bpf_parse_param(), mantenga intacto el valor de param-\u0026gt;string para que pueda liberarse m\u00e1s tarde. De lo contrario, el \u00e1rea kmalloc a la que apunta param-\u0026gt;string se filtrar\u00e1 como se muestra a continuaci\u00f3n: objeto sin referencia 0xffff888118c46d20 (tama\u00f1o 8): comm \\\"new_name\\\", pid 12109, jiffies 4295580214 volcado hexadecimal (primeros 8 bytes): 61 6e 79 00 38 c9 5c 7e any.8.\\\\~ backtrace (crc e1b7f876): [\u0026lt;00000000c6848ac7\u0026gt;] kmemleak_alloc+0x4b/0x80 [\u0026lt;00000000de9f7d00\u0026gt;] __kmalloc_node_track_caller_noprof+0x36e/0x4a0 [\u0026lt;000000003e29b886\u0026gt;] memdup_user+0x32/0xa0 [\u0026lt;0000000007248326\u0026gt;] strndup_user+0x46/0x60 [\u0026lt;0000000035b3dd29\u0026gt;] __x64_sys_fsconfig+0x368/0x3d0 [\u0026lt;0000000018657927\u0026gt;] x64_sys_call+0xff/0x9f0 [\u0026lt;00000000c0cabc95\u0026gt;] do_syscall_64+0x3b/0xc0 [\u0026lt;000000002f331597\u0026gt;] entrada_SYSCALL_64_after_hwframe+0x4b/0x53\"}],\"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-401\"}]}],\"configurations\":[{\"nodes\":[{\"operator\":\"OR\",\"negate\":false,\"cpeMatch\":[{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"6.9\",\"versionEndExcluding\":\"6.11.6\",\"matchCriteriaId\":\"2132686D-AA83-479C-98CA-4B9F24436525\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:6.12:rc1:*:*:*:*:*:*\",\"matchCriteriaId\":\"7F361E1D-580F-4A2D-A509-7615F73167A1\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:6.12:rc2:*:*:*:*:*:*\",\"matchCriteriaId\":\"925478D0-3E3D-4E6F-ACD5-09F28D5DF82C\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:6.12:rc3:*:*:*:*:*:*\",\"matchCriteriaId\":\"3C95E234-D335-4B6C-96BF-E2CEBD8654ED\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:6.12:rc4:*:*:*:*:*:*\",\"matchCriteriaId\":\"E0F717D8-3014-4F84-8086-0124B2111379\"}]}]}],\"references\":[{\"url\":\"https://git.kernel.org/stable/c/1f97c03f43fadc407de5b5cb01c07755053e1c22\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/5d7a0a426540319327309035509cb768a2f5c2c4\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]}]}}"
  }
}


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 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.