CVE-2023-2603 Integer overflow in libcap

High 7.8 Published Updated

An integer overflow in libcap's string duplication function can cause a denial of service when processing large inputs.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2023-2603?

CVE-2023-2603 is a high-severity vulnerability in Debian Debian Linux, published on 6 Jun 2023. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

A vulnerability was found in libcap. This issue occurs in the _libcap_strdup() function and can lead to an integer overflow if the input string is close to 4GiB.

Weakness: CWE-190

Which versions are affected by CVE-2023-2603?

It affects 4 products.

Linux distribution packages (15)
libcap-debuginfo Red Hat:rhel_eus:9.0::appstreamAll versions0:2.48-8.el9_0.1
libcap-debugsource Red Hat:rhel_eus:9.0::appstreamAll versions0:2.48-8.el9_0.1
libcap-devel Red Hat:rhel_eus:9.0::appstreamAll versions0:2.48-8.el9_0.1
libcap Red Hat:rhel_eus:9.0::baseosAll versions0:2.48-8.el9_0.1
libcap-debuginfo Red Hat:rhel_eus:9.0::baseosAll versions0:2.48-8.el9_0.1
libcap-debugsource Red Hat:rhel_eus:9.0::baseosAll versions0:2.48-8.el9_0.1
libcap SUSE:Linux Enterprise Micro 5.1All versions2.26-150000.4.9.1
libcap SUSE:Linux Enterprise Micro 5.2All versions2.26-150000.4.9.1
libcap SUSE:Linux Enterprise Real Time 15 SP3All versions2.26-150000.4.9.1
libcap SUSE:Linux Enterprise Server 12 SP5All versions2.26-14.9.1
libcap SUSE:Linux Enterprise Server for SAP Applications 12 SP5All versions2.26-14.9.1
libcap SUSE:Linux Enterprise Software Development Kit 12 SP5All versions2.26-14.9.1
libcap SUSE:Manager Proxy 4.2All versions2.26-150000.4.9.1
libcap SUSE:Manager Server 4.2All versions2.26-150000.4.9.1
libcap openSUSE:Leap 15.4All versions2.26-150000.4.9.1

Products include Debian Debian Linux, Fedoraproject Fedora, Libcap Project Libcap, Redhat Enterprise Linux.

How do I fix CVE-2023-2603?

Apply the vendor's patch.

Is CVE-2023-2603 being exploited?

There is no known exploitation of CVE-2023-2603 in the wild and no public exploit code.

Public exploit code: 1 proofs of concept on GitHub.

All Debian Debian Linux vulnerabilities

Sources

Also known as ALPINE-CVE-2023-2603, AZL-27065, CLSA-2023-1688677606, CLSA-2023-1688678245, CLSA-2023-1699379448, DEBIAN-CVE-2023-2603 and 8 more.

Is CVE-2023-2603 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free