Skip to content
OpenAdvisories
High · 7.5 CVE-2021-41495 EUVD-2021-0152GHSA-5545-2q6w-2gh6PYSEC-2021-856

NumPy NULL Pointer Dereference

Published Dec 17, 2021 · Updated Aug 4, 2024 · Assigned by mitre

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

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 numpy No fix yet —
Debian 13 numpy No fix yet —
Debian 12 numpy No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS numpy 1:1.21.5-1ubuntu22.04.1 USN-5763-1
Ubuntu 20.04 LTS numpy 1:1.17.4-5ubuntu3.1 USN-5763-1
ReleasePackageFixed inAdvisory
Red Hat OpenStack 16 numpy +2 1:1.17.0-11.el8ost RHSA-2022:8861, RHSA-2022:8852
ReleasePackageFixed inAdvisory
SLES 15 SP6 python3-numpy +1 1.17.3-150400.31.1 SUSE-SU-2025:0424-1
SLES 15 SP4 python-numpy +1 1.17.3-150400.23.3.1 SUSE-SU-2022:2646-1
SLES 15 SP3 python-numpy_1_16_5-gnu-hpc 1.16.5-150200.3.5.1 SUSE-SU-2022:1064-1
SLES 15 SP2 python2-numpy 1.16.5-150200.3.5.1 SUSE-SU-2022:1064-2
SLES 15 SP1 python2-numpy 1.16.5-150000.1.9.1 SUSE-SU-2022:2441-1
Show 16 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES 15 python2-numpy 1.16.5-150000.1.9.1 SUSE-SU-2022:2441-1
SLES 12 SP5 python-numpy 1.8.0-5.14.1 SUSE-SU-2022:2645-1
SLES 12 python-numpy_1_13_3-gnu-hpc 1.13.3-4.15.1 SUSE-SU-2022:2793-1
SLES 2 python2-numpy 1.16.5-150200.3.5.1 SUSE-SU-2022:1064-1
SLES for SAP 15 SP2 python2-numpy 1.16.5-150200.3.5.1 SUSE-SU-2022:1064-2
SLES for SAP 15 SP1 python2-numpy 1.16.5-150000.1.9.1 SUSE-SU-2022:2441-1
SLES for SAP 15 python2-numpy 1.16.5-150000.1.9.1 SUSE-SU-2022:2441-1
SLES for SAP 12 SP5 python-numpy 1.8.0-5.14.1 SUSE-SU-2022:2645-1
SLE HPC 15 SP2 python2-numpy +1 1.16.5-150200.3.5.1 SUSE-SU-2022:1064-2
SLE HPC 15 SP1 python2-numpy +1 1.16.5-150000.1.9.1 SUSE-SU-2022:2441-1
SLE HPC 15 python2-numpy +1 1.16.5-150000.1.9.1 SUSE-SU-2022:2441-1
SUSE Manager Server 4.1 python2-numpy 1.16.5-150200.3.5.1 SUSE-SU-2022:1064-2
SUSE Manager Retail Branch Server 4.1 python2-numpy 1.16.5-150200.3.5.1 SUSE-SU-2022:1064-2
SUSE Manager Proxy 4.1 python2-numpy 1.16.5-150200.3.5.1 SUSE-SU-2022:1064-2
SUSE Enterprise Storage 7 python2-numpy 1.16.5-150200.3.5.1 SUSE-SU-2022:1064-2
SUSE Enterprise Storage 6 python2-numpy 1.16.5-150000.1.9.1 SUSE-SU-2022:2441-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-numpy 1.25.2-2.1 openSUSE-SU-2026:11371-1, openSUSE-SU-2024:13220-1
openSUSE Tumbleweed python-numpy1 1.26.4-1.1 openSUSE-SU-2024:14311-1
openSUSE Leap 15.6 python3-numpy +1 1.17.3-150400.31.1 SUSE-SU-2025:0424-1
openSUSE Leap 15.4 python-numpy +1 1.17.3-150400.23.3.1 SUSE-SU-2022:2646-1
openSUSE Leap 15.4 python-numpy_1_16_5-gnu-hpc 1.16.5-150200.3.5.1 SUSE-SU-2022:1064-2
openSUSE Leap 15.3 python2-numpy +1 1.16.5-150200.3.5.1 openSUSE-SU-2022:1064-1

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 2 (CBL-Mariner) numpy 1.22.0-1 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI numpy < 1.19 1.19 GHSA-5545-2q6w-2gh6
PyPI numpy < 1.19.1 1.19.1 PYSEC-2021-856

Advisories 17

References