StackPatch is liveSee product

Back to CVE digest
Ubuntu USN · USN-8193-2

libcap vulnerability

Published: Tue, 23 Jun 2026 19:09

CVE-2026-4878

Summary

libcap could be made to modify capabilities on arbitrary files.

Details

USN-8193-1 fixed a vulnerability in libcap. This update provides the corresponding update for Ubuntu 14.04 LTS, Ubuntu 16.04 LTS, Ubuntu 18.04 LTS, and Ubuntu 20.04 LTS. Original advisory details: Ali Raza discovered that libcap incorrectly handled file capability updates. A local attacker could possibly use this issue to inject or strip capabilities into arbitrary executables and escalate privileges.

Recommended actions per Ubuntu release

StackPatch playbook auto-generated per release codename and per affected package.

Ubuntu bionic

  • libcap21:2.25-1.2ubuntu0.1~esm2apt_upgrade_esm

    Fixed at 1:2.25-1.2ubuntu0.1~esm2 — ESM-only. Enable Ubuntu Pro (free for 5 personal machines) or treat as watch item.

    sudo pro attach <token>
    sudo apt-get update
    sudo apt-get install --only-upgrade -y libcap2=1:2.25-1.2ubuntu0.1~esm2

    Sign up at https://ubuntu.com/pro. Free for personal + small-team use.

  • libcap-dev1:2.25-1.2ubuntu0.1~esm2apt_upgrade_esm

    Fixed at 1:2.25-1.2ubuntu0.1~esm2 — ESM-only. Enable Ubuntu Pro (free for 5 personal machines) or treat as watch item.

    sudo pro attach <token>
    sudo apt-get update
    sudo apt-get install --only-upgrade -y libcap-dev=1:2.25-1.2ubuntu0.1~esm2

    Sign up at https://ubuntu.com/pro. Free for personal + small-team use.

  • libcap21:2.25-1.2ubuntu0.1~esm2apt_upgrade_esm

    Fixed at 1:2.25-1.2ubuntu0.1~esm2 — ESM-only. Enable Ubuntu Pro (free for 5 personal machines) or treat as watch item.

    sudo pro attach <token>
    sudo apt-get update
    sudo apt-get install --only-upgrade -y libcap2=1:2.25-1.2ubuntu0.1~esm2

    Sign up at https://ubuntu.com/pro. Free for personal + small-team use.

  • libcap2-bin1:2.25-1.2ubuntu0.1~esm2apt_upgrade_esm

    Fixed at 1:2.25-1.2ubuntu0.1~esm2 — ESM-only. Enable Ubuntu Pro (free for 5 personal machines) or treat as watch item.

    sudo pro attach <token>
    sudo apt-get update
    sudo apt-get install --only-upgrade -y libcap2-bin=1:2.25-1.2ubuntu0.1~esm2

    Sign up at https://ubuntu.com/pro. Free for personal + small-team use.

  • libpam-cap1:2.25-1.2ubuntu0.1~esm2apt_upgrade_esm

    Fixed at 1:2.25-1.2ubuntu0.1~esm2 — ESM-only. Enable Ubuntu Pro (free for 5 personal machines) or treat as watch item.

    sudo pro attach <token>
    sudo apt-get update
    sudo apt-get install --only-upgrade -y libpam-cap=1:2.25-1.2ubuntu0.1~esm2

    Sign up at https://ubuntu.com/pro. Free for personal + small-team use.

Ubuntu focal

  • libcap21:2.32-1ubuntu0.2+esm1apt_upgrade

    Standard apt upgrade. Install 1:2.32-1ubuntu0.2+esm1 from the apt repo.

    sudo apt-get update
    sudo apt-get install --only-upgrade -y libcap2

    Most apt upgrades restart their service automatically. needrestart lists anything else.

  • libcap-dev1:2.32-1ubuntu0.2+esm1apt_upgrade

    Standard apt upgrade. Install 1:2.32-1ubuntu0.2+esm1 from the apt repo.

    sudo apt-get update
    sudo apt-get install --only-upgrade -y libcap-dev

    Most apt upgrades restart their service automatically. needrestart lists anything else.

  • libcap21:2.32-1ubuntu0.2+esm1apt_upgrade

    Standard apt upgrade. Install 1:2.32-1ubuntu0.2+esm1 from the apt repo.

    sudo apt-get update
    sudo apt-get install --only-upgrade -y libcap2

    Most apt upgrades restart their service automatically. needrestart lists anything else.

  • libcap2-bin1:2.32-1ubuntu0.2+esm1apt_upgrade

    Standard apt upgrade. Install 1:2.32-1ubuntu0.2+esm1 from the apt repo.

    sudo apt-get update
    sudo apt-get install --only-upgrade -y libcap2-bin

    Most apt upgrades restart their service automatically. needrestart lists anything else.

  • libpam-cap1:2.32-1ubuntu0.2+esm1apt_upgrade

    Standard apt upgrade. Install 1:2.32-1ubuntu0.2+esm1 from the apt repo.

    sudo apt-get update
    sudo apt-get install --only-upgrade -y libpam-cap

    Most apt upgrades restart their service automatically. needrestart lists anything else.

Ubuntu trusty

  • libcap21:2.24-0ubuntu2+esm2apt_upgrade

    Standard apt upgrade. Install 1:2.24-0ubuntu2+esm2 from the apt repo.

    sudo apt-get update
    sudo apt-get install --only-upgrade -y libcap2

    Most apt upgrades restart their service automatically. needrestart lists anything else.

  • libcap-dev1:2.24-0ubuntu2+esm2apt_upgrade

    Standard apt upgrade. Install 1:2.24-0ubuntu2+esm2 from the apt repo.

    sudo apt-get update
    sudo apt-get install --only-upgrade -y libcap-dev

    Most apt upgrades restart their service automatically. needrestart lists anything else.

  • libcap21:2.24-0ubuntu2+esm2apt_upgrade

    Standard apt upgrade. Install 1:2.24-0ubuntu2+esm2 from the apt repo.

    sudo apt-get update
    sudo apt-get install --only-upgrade -y libcap2

    Most apt upgrades restart their service automatically. needrestart lists anything else.

  • libcap2-bin1:2.24-0ubuntu2+esm2apt_upgrade

    Standard apt upgrade. Install 1:2.24-0ubuntu2+esm2 from the apt repo.

    sudo apt-get update
    sudo apt-get install --only-upgrade -y libcap2-bin

    Most apt upgrades restart their service automatically. needrestart lists anything else.

  • libpam-cap1:2.24-0ubuntu2+esm2apt_upgrade

    Standard apt upgrade. Install 1:2.24-0ubuntu2+esm2 from the apt repo.

    sudo apt-get update
    sudo apt-get install --only-upgrade -y libpam-cap

    Most apt upgrades restart their service automatically. needrestart lists anything else.

Ubuntu xenial

  • libcap21:2.24-12ubuntu0.1~esm2apt_upgrade_esm

    Fixed at 1:2.24-12ubuntu0.1~esm2 — ESM-only. Enable Ubuntu Pro (free for 5 personal machines) or treat as watch item.

    sudo pro attach <token>
    sudo apt-get update
    sudo apt-get install --only-upgrade -y libcap2=1:2.24-12ubuntu0.1~esm2

    Sign up at https://ubuntu.com/pro. Free for personal + small-team use.

  • libcap-dev1:2.24-12ubuntu0.1~esm2apt_upgrade_esm

    Fixed at 1:2.24-12ubuntu0.1~esm2 — ESM-only. Enable Ubuntu Pro (free for 5 personal machines) or treat as watch item.

    sudo pro attach <token>
    sudo apt-get update
    sudo apt-get install --only-upgrade -y libcap-dev=1:2.24-12ubuntu0.1~esm2

    Sign up at https://ubuntu.com/pro. Free for personal + small-team use.

  • libcap21:2.24-12ubuntu0.1~esm2apt_upgrade_esm

    Fixed at 1:2.24-12ubuntu0.1~esm2 — ESM-only. Enable Ubuntu Pro (free for 5 personal machines) or treat as watch item.

    sudo pro attach <token>
    sudo apt-get update
    sudo apt-get install --only-upgrade -y libcap2=1:2.24-12ubuntu0.1~esm2

    Sign up at https://ubuntu.com/pro. Free for personal + small-team use.

  • libcap2-bin1:2.24-12ubuntu0.1~esm2apt_upgrade_esm

    Fixed at 1:2.24-12ubuntu0.1~esm2 — ESM-only. Enable Ubuntu Pro (free for 5 personal machines) or treat as watch item.

    sudo pro attach <token>
    sudo apt-get update
    sudo apt-get install --only-upgrade -y libcap2-bin=1:2.24-12ubuntu0.1~esm2

    Sign up at https://ubuntu.com/pro. Free for personal + small-team use.

  • libpam-cap1:2.24-12ubuntu0.1~esm2apt_upgrade_esm

    Fixed at 1:2.24-12ubuntu0.1~esm2 — ESM-only. Enable Ubuntu Pro (free for 5 personal machines) or treat as watch item.

    sudo pro attach <token>
    sudo apt-get update
    sudo apt-get install --only-upgrade -y libpam-cap=1:2.24-12ubuntu0.1~esm2

    Sign up at https://ubuntu.com/pro. Free for personal + small-team use.

Are YOU affected by USN-8193-2?

5-second check on your actual server. Reads /etc/os-release, uname -r, and dpkg-query; matches against the live USN + Debian Security Tracker feeds; tells you whether USN-8193-2 (and any other live CVE) applies. Anonymous, no signup.

curl https://mindsparkstack.com/scan.sh | bash
Want this automated for your servers?

StackPatch runs this match against YOUR installed packages every hour

Free (3 servers) / from $9/mo (14-day free trial) / Solo $9/mo / Pro $29/mo / Team $79/mo. Indie pricing.