Execution with Unnecessary Privileges Affecting python2-blockdev package, versions <0:2.18-4.amzn2.0.2


Severity

Recommended
medium

Based on Amazon Linux security rating.

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.02% (5th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-AMZN2-PYTHON2BLOCKDEV-10500442
  • published25 Jun 2025
  • disclosed19 Jun 2025

Introduced: 19 Jun 2025

NewCVE-2025-6019  (opens in a new tab)
CWE-250  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2 python2-blockdev to version 0:2.18-4.amzn2.0.2 or higher.
This issue was patched in ALAS2-2025-2895.

NVD Description

Note: Versions mentioned in the description apply only to the upstream python2-blockdev package and not the python2-blockdev package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2 relevant fixed versions and status.

A Local Privilege Escalation (LPE) vulnerability was found in libblockdev. Generally, the "allow_active" setting in Polkit permits a physically present user to take certain actions based on the session type. Due to the way libblockdev interacts with the udisks daemon, an "allow_active" user on a system may be able escalate to full root privileges on the target host. Normally, udisks mounts user-provided filesystem images with security flags like nosuid and nodev to prevent privilege escalation. However, a local attacker can create a specially crafted XFS image containing a SUID-root shell, then trick udisks into resizing it. This mounts their malicious filesystem with root privileges, allowing them to execute their SUID-root shell and gain complete control of the system.

CVSS Base Scores

version 3.1