CVE-2021-41495

numpy: NULL pointer dereference in numpy.sort in in the PyArray_DescrNew() due to missing return-value validation

Published Dec 17, 2021 CVSS 3.1 · 5.3 Medium EPSS 1.2% KEV · Not listed
Description
Null Pointer Dereference vulnerability exists in numpy.sort in NumPy &lt and 1.19 in the PyArray_DescrNew function due to missing return-value validation, which allows attackers to conduct DoS attacks by repetitively creating sort arrays. NOTE: While correct that validation is missing, an error can only occur due to an exhaustion of memory. If the user can exhaust memory, they are already privileged. Further, it should be practically impossible to construct an attack which can target the memory exhaustion to occur at exactly this place

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-5545-2q6w-2gh6 NumPy NULL Pointer Dereference
Ubuntu USN Ubuntu USN USN-5763-1 NumPy vulnerabilities
History

No history.

Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Aug 4, 2024, 3:15 AM
Reserved
Sep 20, 2021, 12:00 AM
Status
Modified
Published
Dec 17, 2021, 8:15 PM
Modified
Jun 17, 2026, 4:08 AM
Severity
Moderate
Public date
May 19, 2021, 12:00 AM