CVE-2024-58016 (GCVE-0-2024-58016)
Vulnerability from cvelistv5
Published
2025-02-27 02:12
Modified
2025-05-04 10:08
Severity ?
Summary
In the Linux kernel, the following vulnerability has been resolved: safesetid: check size of policy writes syzbot attempts to write a buffer with a large size to a sysfs entry with writes handled by handle_policy_update(), triggering a warning in kmalloc. Check the size specified for write buffers before allocating. [PM: subject tweak]
Impacted products
Vendor Product Version
Linux Linux Version: aeca4e2ca65c1aeacfbe520684e6421719d99417
Version: aeca4e2ca65c1aeacfbe520684e6421719d99417
Version: aeca4e2ca65c1aeacfbe520684e6421719d99417
Version: aeca4e2ca65c1aeacfbe520684e6421719d99417
Version: aeca4e2ca65c1aeacfbe520684e6421719d99417
Version: aeca4e2ca65c1aeacfbe520684e6421719d99417
Version: aeca4e2ca65c1aeacfbe520684e6421719d99417
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "security/safesetid/securityfs.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "976284b94f2021df09829e37a367e19b84d9e5f3",
              "status": "affected",
              "version": "aeca4e2ca65c1aeacfbe520684e6421719d99417",
              "versionType": "git"
            },
            {
              "lessThan": "ecf6a4a558097920447a6fb84dfdb279e2ac749a",
              "status": "affected",
              "version": "aeca4e2ca65c1aeacfbe520684e6421719d99417",
              "versionType": "git"
            },
            {
              "lessThan": "a0dec65f88c8d9290dfa1d2ca1e897abe54c5881",
              "status": "affected",
              "version": "aeca4e2ca65c1aeacfbe520684e6421719d99417",
              "versionType": "git"
            },
            {
              "lessThan": "96fae5bd1589731592d30b3953a90a77ef3928a6",
              "status": "affected",
              "version": "aeca4e2ca65c1aeacfbe520684e6421719d99417",
              "versionType": "git"
            },
            {
              "lessThan": "36b385d0f2b4c0bf41d491e19075ecd990d2bf94",
              "status": "affected",
              "version": "aeca4e2ca65c1aeacfbe520684e6421719d99417",
              "versionType": "git"
            },
            {
              "lessThan": "c71d35676d46090c891b6419f253fb92a1a9f4eb",
              "status": "affected",
              "version": "aeca4e2ca65c1aeacfbe520684e6421719d99417",
              "versionType": "git"
            },
            {
              "lessThan": "f09ff307c7299392f1c88f763299e24bc99811c7",
              "status": "affected",
              "version": "aeca4e2ca65c1aeacfbe520684e6421719d99417",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "security/safesetid/securityfs.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "5.1"
            },
            {
              "lessThan": "5.1",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.235",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.179",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.129",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.78",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.14",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.13.*",
              "status": "unaffected",
              "version": "6.13.3",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.14",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.235",
                  "versionStartIncluding": "5.1",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.179",
                  "versionStartIncluding": "5.1",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.129",
                  "versionStartIncluding": "5.1",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.78",
                  "versionStartIncluding": "5.1",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.14",
                  "versionStartIncluding": "5.1",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.13.3",
                  "versionStartIncluding": "5.1",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.14",
                  "versionStartIncluding": "5.1",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nsafesetid: check size of policy writes\n\nsyzbot attempts to write a buffer with a large size to a sysfs entry\nwith writes handled by handle_policy_update(), triggering a warning\nin kmalloc.\n\nCheck the size specified for write buffers before allocating.\n\n[PM: subject tweak]"
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-05-04T10:08:30.860Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/976284b94f2021df09829e37a367e19b84d9e5f3"
        },
        {
          "url": "https://git.kernel.org/stable/c/ecf6a4a558097920447a6fb84dfdb279e2ac749a"
        },
        {
          "url": "https://git.kernel.org/stable/c/a0dec65f88c8d9290dfa1d2ca1e897abe54c5881"
        },
        {
          "url": "https://git.kernel.org/stable/c/96fae5bd1589731592d30b3953a90a77ef3928a6"
        },
        {
          "url": "https://git.kernel.org/stable/c/36b385d0f2b4c0bf41d491e19075ecd990d2bf94"
        },
        {
          "url": "https://git.kernel.org/stable/c/c71d35676d46090c891b6419f253fb92a1a9f4eb"
        },
        {
          "url": "https://git.kernel.org/stable/c/f09ff307c7299392f1c88f763299e24bc99811c7"
        }
      ],
      "title": "safesetid: check size of policy writes",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2024-58016",
    "datePublished": "2025-02-27T02:12:08.547Z",
    "dateReserved": "2025-02-27T02:10:48.228Z",
    "dateUpdated": "2025-05-04T10:08:30.860Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1",
  "vulnerability-lookup:meta": {
    "nvd": "{\"cve\":{\"id\":\"CVE-2024-58016\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2025-02-27T03:15:12.590\",\"lastModified\":\"2025-03-13T13:15:44.400\",\"vulnStatus\":\"Awaiting Analysis\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nsafesetid: check size of policy writes\\n\\nsyzbot attempts to write a buffer with a large size to a sysfs entry\\nwith writes handled by handle_policy_update(), triggering a warning\\nin kmalloc.\\n\\nCheck the size specified for write buffers before allocating.\\n\\n[PM: subject tweak]\"},{\"lang\":\"es\",\"value\":\"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: safesetid: comprobar el tama\u00f1o de las escrituras de pol\u00edticas syzbot intenta escribir un b\u00fafer de gran tama\u00f1o en una entrada sysfs con escrituras gestionadas por handle_policy_update(), lo que activa una advertencia en kmalloc. Compruebe el tama\u00f1o especificado para los b\u00faferes de escritura antes de asignar. [MP: modificaci\u00f3n del asunto]\"}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/36b385d0f2b4c0bf41d491e19075ecd990d2bf94\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/96fae5bd1589731592d30b3953a90a77ef3928a6\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/976284b94f2021df09829e37a367e19b84d9e5f3\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/a0dec65f88c8d9290dfa1d2ca1e897abe54c5881\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/c71d35676d46090c891b6419f253fb92a1a9f4eb\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/ecf6a4a558097920447a6fb84dfdb279e2ac749a\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/f09ff307c7299392f1c88f763299e24bc99811c7\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}"
  }
}


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.


Loading…

Loading…