Advisory

UBUNTU-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

Medium Basis: CVSS v3 score 6.7, vector CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H

Dates

Published
2026-04-09 16:16 UTC
Modified
2026-06-24 02:29 UTC

Affected packages and fixes

libcap2

Debian packages (deb) · Ubuntu 22.04

Affected

  • introduced 0, fixed 1:2.44-1ubuntu0.22.04.3 (ecosystem)

Fixed versions

1:2.44-1ubuntu0.22.04.3

Fix

  • Fixed version 1:2.44-1ubuntu0.22.04.3
    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) · Ubuntu 24.04

Affected

  • introduced 0, fixed 1:2.66-5ubuntu2.4 (ecosystem)

Fixed versions

1:2.66-5ubuntu2.4

Fix

  • Fixed version 1:2.66-5ubuntu2.4
    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) · Ubuntu 25.10

Affected

  • introduced 0, fixed 1:2.75-7ubuntu2.2 (ecosystem)

Fixed versions

1:2.75-7ubuntu2.2

Fix

  • Fixed version 1:2.75-7ubuntu2.2
    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: Ubuntu Security Notices · CC BY-SA 4.0

Sources & licences