Skip to content
OpenAdvisories
Medium · 5.5 CVE-2021-41496 EUVD-2021-0153GHSA-f7c7-j99h-c22fPYSEC-2021-857

Buffer Copy without Checking Size of Input in NumPy

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

Description

Buffer overflow in the array_from_pyobj function of fortranobject.c in NumPy < 1.19, which allows attackers to conduct a Denial of Service attacks by carefully constructing an array with negative values. NOTE: The vendor does not agree this is a vulnerability; the negative dimensions can only be created by an already privileged user (or internally)

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-8.el8ost RHSA-2022:1000, RHSA-2022:0987
ReleasePackageFixed inAdvisory
SLES 15 SP3 python-numpy +1 1.17.3-10.1 SUSE-SU-2022:0134-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 python-numpy 1.17.3-10.1 SUSE-SU-2022:0134-3
SLES 15 SP2 python2-numpy 1.16.5-150200.3.5.1 SUSE-SU-2022:1064-2
SLES 15 SP1 python-numpy 1.17.3-10.1 SUSE-SU-2022:0134-3
SLES 15 SP1 python2-numpy 1.16.5-150000.1.9.1 SUSE-SU-2022:2441-1
SLES 15 python-numpy 1.17.3-10.1 SUSE-SU-2022:0134-3
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.11.1 SUSE-SU-2022:0118-1
Show 16 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES 12 python-numpy_1_13_3-gnu-hpc 1.13.3-4.12.1 SUSE-SU-2022:0206-1
SLES 2 python2-numpy 1.16.5-150200.3.5.1 SUSE-SU-2022:1064-1
SLES for SAP 15 SP2 python-numpy 1.17.3-10.1 SUSE-SU-2022:0134-3
SLES for SAP 15 SP2 python2-numpy 1.16.5-150200.3.5.1 SUSE-SU-2022:1064-2
SLES for SAP 15 SP1 python-numpy 1.17.3-10.1 SUSE-SU-2022:0134-3
SLES for SAP 15 SP1 python2-numpy 1.16.5-150000.1.9.1 SUSE-SU-2022:2441-1
SLES for SAP 15 python-numpy 1.17.3-10.1 SUSE-SU-2022:0134-3
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.11.1 SUSE-SU-2022:0118-1
SLE Real Time 15 SP2 python-numpy +1 1.17.3-10.1 SUSE-SU-2022:0134-3, SUSE-SU-2022:0134-2, SUSE-SU-2022:0134-1
SLE HPC 15 SP2 python-numpy +1 1.17.3-10.1 SUSE-SU-2022:0134-3
SLE HPC 15 SP2 python2-numpy +1 1.16.5-150200.3.5.1 SUSE-SU-2022:1064-2
SLE HPC 15 SP1 python-numpy +1 1.17.3-10.1 SUSE-SU-2022:0134-3
SLE HPC 15 SP1 python2-numpy +1 1.16.5-150000.1.9.1 SUSE-SU-2022:2441-1
SLE HPC 15 python-numpy +1 1.17.3-10.1 SUSE-SU-2022:0134-3
SLE HPC 15 python2-numpy +1 1.16.5-150000.1.9.1 SUSE-SU-2022:2441-1
SUSE Package Hub 15 SP3 dxflib 3.17.0-bp153.2.3.1 openSUSE-SU-2022:0134-1
SUSE Manager Server 4.1 python-numpy 1.17.3-10.1 SUSE-SU-2022:0134-3
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 python-numpy 1.17.3-10.1 SUSE-SU-2022:0134-3
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 python-numpy 1.17.3-10.1 SUSE-SU-2022:0134-3
SUSE Manager Proxy 4.1 python2-numpy 1.16.5-150200.3.5.1 SUSE-SU-2022:1064-2
SUSE Enterprise Storage 7 python-numpy 1.17.3-10.1 SUSE-SU-2022:0134-3
SUSE Enterprise Storage 7 python2-numpy 1.16.5-150200.3.5.1 SUSE-SU-2022:1064-2
SUSE Enterprise Storage 6 python-numpy 1.17.3-10.1 SUSE-SU-2022:0134-3
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.4 python-numpy_1_16_5-gnu-hpc 1.16.5-150200.3.5.1 SUSE-SU-2022:1064-2
openSUSE Leap 15.3 dxflib 3.17.0-bp153.2.3.1 openSUSE-SU-2022:0134-1
openSUSE Leap 15.3 python-numpy +1 1.17.3-10.1 openSUSE-SU-2022:0134-1
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-f7c7-j99h-c22f
PyPI numpy < 1.19.0 1.19.0 PYSEC-2021-857

Advisories 20

References