{
  "schema_version": "1.7.0",
  "id": "MGASA-2026-0221",
  "published": "2026-06-18T07:22:53Z",
  "modified": "2026-06-18T06:34:43Z",
  "summary": "Updated libcap packages fix security vulnerabilities",
  "details": "CVE-2026-4878. A flaw was found in libcap. A local unprivileged user can\nexploit a Time-of-check-to-time-of-use (TOCTOU) race condition in the\n`cap_set_file()` function. This allows an attacker with write access to\na parent directory to redirect file capability updates to an\nattacker-controlled file. By doing so, capabilities can be injected into\nor stripped from unintended executables, leading to privilege\nescalation.\n",
  "upstream": [
    "CVE-2026-4878"
  ],
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://advisories.mageia.org/MGASA-2026-0221.html"
    },
    {
      "type": "REPORT",
      "url": "https://bugs.mageia.org/show_bug.cgi?id=35329"
    },
    {
      "type": "WEB",
      "url": "https://www.openwall.com/lists/oss-security/2026/04/07/4"
    },
    {
      "type": "WEB",
      "url": "https://www.openwall.com/lists/oss-security/2026/04/07/14"
    }
  ],
  "affected": [
    {
      "package": {
        "ecosystem": "Mageia:9",
        "name": "libcap",
        "purl": "pkg:rpm/mageia/libcap?arch=source&distro=mageia-9"
      },
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "2.52-5.2.mga9"
            }
          ]
        }
      ],
      "ecosystem_specific": {
        "section": "core"
      }
    }
  ],
  "credits": [
    {
      "name": "Mageia",
      "type": "COORDINATOR",
      "contact": [
        "https://wiki.mageia.org/en/Packages_Security_Team"
      ]
    }
  ]
}
