Advisory

DEBIAN-CVE-2026-4878

Also known as: CVE-2026-4878

Summary

The record has no summary.

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.

Severity

High Basis: CVSS v3 score 7, vector CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Dates

Published
2026-04-09 16:16 UTC
Modified
2026-11-05 09:47 UTC

Affected packages and fixes

libcap2

Debian packages (deb) · Debian 12

Affected

  • introduced 0, fixed 1:2.66-4+deb12u3 (ecosystem)

Fixed versions

1:2.66-4+deb12u3

Fix

  • Fixed version 1:2.66-4+deb12u3
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

libcap2

Debian packages (deb) · Debian 13

Affected

  • introduced 0, fixed 1:2.75-10+deb13u1 (ecosystem)

Fixed versions

1:2.75-10+deb13u1

Fix

  • Fixed version 1:2.75-10+deb13u1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

libcap2

Debian packages (deb) · Debian 14

Affected

  • introduced 0, fixed 1:2.78-1 (ecosystem)

Fixed versions

1:2.78-1

Fix

  • Fixed version 1:2.78-1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Debian Security Tracker (converted by OSV.dev)

Debian Security Tracker, converted to OSV by OSV.dev.

Sources & licences