{"id":"CVE-2021-4150","aliases":["CVE-2021-4150"],"related":[],"kind":"vulnerability","state":"published","title":"A use-after-free flaw was found in the addpartition in block/partitions/core.c in the Linux kernel.","summary":"A use-after-free flaw was found in the add_partition in block/partitions/core.c in the Linux kernel. A local attacker with user privileges could cause a denial of service on the system. The issue results from the lack of code cleanup when device_add call fails when adding a partition to the disk.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"A use-after-free flaw was found in the add_partition in block/partitions/core.c in the Linux kernel. A local attacker with user privileges could cause a denial of service on the system. The issue results from the lack of code cleanup when device_add call fails when adding a partition to the disk.","source":"cvelist"},{"lang":"es","text":"Se ha encontrado un fallo de uso de memoria previamente liberada en la función add_partition en el archivo block/partitions/core.c en el kernel de Linux. Un atacante local con privilegios de usuario podría causar una denegación de servicio en el sistema. El problema es debido a una falta de saneo del código cuando la llamada device_add falla cuando es añadida una partición al disco","source":"nvd"}],"published":"2022-03-23T19:46:46.000Z","modified":"2026-06-17T04:19:07.437Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:L/AC:L/Au:N/C:N/I:N/A:C","score":4.9,"rating":"MEDIUM"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"version":"kernel 5.15 rc7","status":"affected"}],"product":"kernel","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"5.15"},{"status":"affected","version":"5.15"},{"status":"affected","version":"5.15"},{"status":"affected","version":"5.15"},{"status":"affected","version":"5.15"},{"status":"affected","version":"5.15"},{"status":"affected","version":"5.15"},{"status":"affected","version":"5.15"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2025938","tags":["issue-tracking","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lkml.org/lkml/2021/10/18/485","tags":["exploit","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lkml.org/lkml/2021/9/6/781","tags":["exploit","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"redhat","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-4150","url":"https://www.cve.org/CVERecord?id=CVE-2021-4150","licence":"CVE Terms of Use","modified":"2024-08-03T17:16:04.268Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-4150","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-4150","licence":"Public domain","modified":"2026-06-17T04:19:07.437Z"}],"updatedAt":"2026-11-25T22:58:07.256Z","epss":{"score":0.00336,"percentile":0.28865,"date":"2026-12-02T12:00:21.000Z"}}