{"id":"CVE-2021-4150","state":"PUBLISHED","title":"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 sy","description":"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.","publishedAt":"2022-03-23T19:46:46.000Z","updatedAt":"2024-08-03T17:16:04.268Z","severity":null,"assigner":"redhat","products":["n/a kernel"],"affected":[{"vendor":"n/a","product":"kernel","versions":[{"version":"kernel 5.15 rc7","status":"affected"}]}],"references":["https://bugzilla.redhat.com/show_bug.cgi?id=2025938","https://lkml.org/lkml/2021/10/18/485","https://lkml.org/lkml/2021/9/6/781"],"weaknesses":["CWE-416"],"ingestedAt":"2026-10-29T19:49:23.890Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2021/4xxx/CVE-2021-4150.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2021-4150","state":"PUBLISHED","datePublished":"2022-03-23T19:46:46.000Z","dateUpdated":"2024-08-03T17:16:04.268Z","assignerShortName":"redhat","assignerOrgId":"53f830b8-0a3f-465b-8143-3b8a9948e749","dateReserved":"2021-12-21T00:00:00.000Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"n/a","product":"kernel","versions":[{"version":"kernel 5.15 rc7","status":"affected"}]}],"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2025938","tags":["x_refsource_MISC"]},{"url":"https://lkml.org/lkml/2021/10/18/485","tags":["x_refsource_MISC"]},{"url":"https://lkml.org/lkml/2021/9/6/781","tags":["x_refsource_MISC"]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-416","description":"CWE-416","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"redhat","dateUpdated":"2022-03-23T19:46:46.000Z","orgId":"53f830b8-0a3f-465b-8143-3b8a9948e749"},"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"secalert@redhat.com","ID":"CVE-2021-4150","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"kernel","version":{"version_data":[{"version_value":"kernel 5.15 rc7"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-416"}]}]},"references":{"reference_data":[{"name":"https://bugzilla.redhat.com/show_bug.cgi?id=2025938","refsource":"MISC","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2025938"},{"name":"https://lkml.org/lkml/2021/10/18/485","refsource":"MISC","url":"https://lkml.org/lkml/2021/10/18/485"},{"name":"https://lkml.org/lkml/2021/9/6/781","refsource":"MISC","url":"https://lkml.org/lkml/2021/9/6/781"}]}}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2025938","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://lkml.org/lkml/2021/10/18/485","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://lkml.org/lkml/2021/9/6/781","tags":["x_refsource_MISC","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T17:16:04.268Z"}}]}}}