DEBIAN-CVE-2026-4878

Source
https://security-tracker.debian.org/tracker/CVE-2026-4878
Import Source
https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-4878.json
JSON Data
https://api.osv.dev/v1/vulns/DEBIAN-CVE-2026-4878
Upstream
  • CVE-2026-4878
Published
2026-04-09T16:16:31Z
Modified
2026-09-10T08:47:33Z
Severity
  • 7.0 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

A flaw was found in libcap. A local unprivileged user can exploit a Time-of-check-to-time-of-use (TOCTOU) race condition in the cap_set_file() function. This allows an attacker with write access to a parent directory to redirect file capability updates to an attacker-controlled file. By doing so, capabilities can be injected into or stripped from unintended executables, leading to privilege escalation.

References

Affected packages

Debian:12 / libcap2

Package

Name
libcap2
Purl
pkg:deb/debian/libcap2?arch=source&distro=bookworm

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
1:2.66-4+deb12u3

Affected versions

1:2.*
1:2.66-4
1:2.66-4+deb12u1
1:2.66-4+deb12u2

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Database specific

source
"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-4878.json"

Debian:13 / libcap2

Package

Name
libcap2
Purl
pkg:deb/debian/libcap2?arch=source&distro=trixie

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
1:2.75-10+deb13u1

Affected versions

1:2.*
1:2.75-10

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Database specific

source
"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-4878.json"

Debian:14 / libcap2

Package

Name
libcap2
Purl
pkg:deb/debian/libcap2?arch=source&distro=forky

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
1:2.78-1

Affected versions

1:2.*
1:2.75-10
1:2.77-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Database specific

source
"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-4878.json"