Cloudanix VulnDB

CVE-2024-52336

High · 7.8

CVSS

7.8

EPSS

0.3%

Published

Nov 26, 2024

CISA due date

—

Cloudanix analysis

Next patch cycle SSVC: Track

A local user on certain Linux machines can trick a system service into running their own program with full administrator rights, giving them complete control of the computer.

Exploitation
Local Privilege
Attacker needs
Low Privilege
Complexity
Low
Impact
Privilege Gain
Component
Application
Class
Privilege Escalation
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

The instance_create D-Bus method in Tuned accepts unauthenticated calls from local users and accepts attacker-supplied absolute paths in script_pre or script_post parameters; Tuned then executes those scripts as root.

Why it matters to the business

Any local user on an affected system can obtain full root access, allowing complete compromise of the host and any data or services running on it; the flaw affects widely deployed Linux systems and must be addressed urgently despite low public exploit activity.

How an attack unfolds

An attacker with local shell access crafts a D-Bus call to instance_create, supplying a path to a malicious script in the script_pre or script_post field; Tuned executes the script with root privileges, granting the attacker a root shell.

How to fix it

Upgrade Tuned to a fixed version; on Ubuntu 16.04 LTS install web2py package version 2.12.3-1ubuntu0.1 or newer. If patching is delayed, restrict local D-Bus access to Tuned via policy or disable the service when not required.

How to confirm the fix worked

Confirm the installed Tuned package version is at or above the fixed release listed for the distribution; attempt an unauthenticated D-Bus call to instance_create and verify that script_pre/script_post parameters are rejected or sanitized.

Typical attack path

  1. Obtain local non-root shell on target system
  2. Connect to the system D-Bus and invoke Tuned's instance_create method
  3. Supply absolute path of attacker-controlled executable in script_pre or script_post
  4. Tuned executes the supplied script as root
  5. Attacker receives root privileges and can install persistence or move laterally

How to detect it

Review system D-Bus logs and Tuned service logs for calls to instance_create that include unexpected script_pre or script_post values; look for new root-owned processes or files created shortly after such calls.

What your security team should do

  • Apply the vendor-supplied package update immediately on all affected hosts
  • Audit systems for any locally created Tuned profiles that reference scripts
  • Monitor D-Bus logs for unexpected instance_create calls until patches are deployed

The record

A script injection vulnerability was identified in the Tuned package. The `instance_create()` D-Bus function can be called by locally logged-in users without authentication. This flaw allows a local non-privileged user to execute a D-Bus call with `script_pre` or `script_post` options that permit arbitrary scripts with their absolute paths to be passed. These user or attacker-controlled executable scripts or programs could then be executed by Tuned with root privileges that could allow attackers to local privilege escalation.

Affected packages

Ecosystem Package Introduced Fixed
AlmaLinux:9 tuned 0 2.24.0-2.el9_5.alma.1
AlmaLinux:9 tuned-gtk 0 2.24.0-2.el9_5.alma.1
AlmaLinux:9 tuned-ppd 0 2.24.0-2.el9_5.alma.1
AlmaLinux:9 tuned-profiles-atomic 0 2.24.0-2.el9_5.alma.1
AlmaLinux:9 tuned-profiles-cpu-partitioning 0 2.24.0-2.el9_5.alma.1
AlmaLinux:9 tuned-profiles-mssql 0 2.24.0-2.el9_5.alma.1
AlmaLinux:9 tuned-profiles-oracle 0 2.24.0-2.el9_5.alma.1
AlmaLinux:9 tuned-profiles-postgresql 0 2.24.0-2.el9_5.alma.1
AlmaLinux:9 tuned-profiles-realtime 0 2.24.0-2.el9_5.alma.1
AlmaLinux:9 tuned-profiles-spectrumscale 0 2.24.0-2.el9_5.alma.1
AlmaLinux:9 tuned-utils 0 2.24.0-2.el9_5.alma.1
Debian:13 tuned 0 2.24.1-1
Red Hat:enterprise_linux:9::appstream tuned 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::appstream tuned-gtk 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::appstream tuned-ppd 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::appstream tuned-profiles-atomic 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::appstream tuned-profiles-cpu-partitioning 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::appstream tuned-profiles-mssql 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::appstream tuned-profiles-nfv 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::appstream tuned-profiles-nfv-guest 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::appstream tuned-profiles-nfv-host 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::appstream tuned-profiles-oracle 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::appstream tuned-profiles-postgresql 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::appstream tuned-profiles-realtime 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::appstream tuned-profiles-sap 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::appstream tuned-profiles-sap-hana 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::appstream tuned-profiles-spectrumscale 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::appstream tuned-utils 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::baseos tuned 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::baseos tuned-gtk 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::baseos tuned-ppd 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::baseos tuned-profiles-atomic 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::baseos tuned-profiles-cpu-partitioning 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::baseos tuned-profiles-mssql 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::baseos tuned-profiles-nfv 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::baseos tuned-profiles-nfv-guest 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::baseos tuned-profiles-nfv-host 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::baseos tuned-profiles-oracle 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::baseos tuned-profiles-postgresql 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::baseos tuned-profiles-realtime 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::baseos tuned-profiles-sap 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::baseos tuned-profiles-sap-hana 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::baseos tuned-profiles-spectrumscale 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::baseos tuned-utils 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::nfv tuned 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::nfv tuned-gtk 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::nfv tuned-ppd 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::nfv tuned-profiles-atomic 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::nfv tuned-profiles-cpu-partitioning 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::nfv tuned-profiles-mssql 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::nfv tuned-profiles-nfv 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::nfv tuned-profiles-nfv-guest 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::nfv tuned-profiles-nfv-host 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::nfv tuned-profiles-oracle 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::nfv tuned-profiles-postgresql 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::nfv tuned-profiles-realtime 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::nfv tuned-profiles-sap 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::nfv tuned-profiles-sap-hana 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::nfv tuned-profiles-spectrumscale 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::nfv tuned-utils 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::realtime tuned 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::realtime tuned-gtk 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::realtime tuned-ppd 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::realtime tuned-profiles-atomic 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::realtime tuned-profiles-cpu-partitioning 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::realtime tuned-profiles-mssql 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::realtime tuned-profiles-nfv 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::realtime tuned-profiles-nfv-guest 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::realtime tuned-profiles-nfv-host 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::realtime tuned-profiles-oracle 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::realtime tuned-profiles-postgresql 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::realtime tuned-profiles-realtime 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::realtime tuned-profiles-sap 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::realtime tuned-profiles-sap-hana 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::realtime tuned-profiles-spectrumscale 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::realtime tuned-utils 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::sap tuned 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::sap tuned-gtk 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::sap tuned-ppd 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::sap tuned-profiles-atomic 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::sap tuned-profiles-cpu-partitioning 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::sap tuned-profiles-mssql 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::sap tuned-profiles-nfv 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::sap tuned-profiles-nfv-guest 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::sap tuned-profiles-nfv-host 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::sap tuned-profiles-oracle 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::sap tuned-profiles-postgresql 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::sap tuned-profiles-realtime 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::sap tuned-profiles-sap 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::sap tuned-profiles-sap-hana 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::sap tuned-profiles-spectrumscale 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::sap tuned-utils 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::sap_hana tuned 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::sap_hana tuned-gtk 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::sap_hana tuned-ppd 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::sap_hana tuned-profiles-atomic 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::sap_hana tuned-profiles-cpu-partitioning 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::sap_hana tuned-profiles-mssql 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::sap_hana tuned-profiles-nfv 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::sap_hana tuned-profiles-nfv-guest 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::sap_hana tuned-profiles-nfv-host 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::sap_hana tuned-profiles-oracle 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::sap_hana tuned-profiles-postgresql 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::sap_hana tuned-profiles-realtime 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::sap_hana tuned-profiles-sap 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::sap_hana tuned-profiles-sap-hana 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::sap_hana tuned-profiles-spectrumscale 0 0:2.24.0-2.el9_5
Red Hat:enterprise_linux:9::sap_hana tuned-utils 0 0:2.24.0-2.el9_5
Rocky Linux:9 tuned 0 0:2.24.0-2.el9_5
Ubuntu:18.04:LTS tuned 0 No fix
Ubuntu:20.04:LTS tuned 0 No fix
Ubuntu:22.04:LTS tuned 0 No fix
Ubuntu:24.04:LTS tuned 0 No fix
Ubuntu:24.10 tuned 0 No fix
Ubuntu:25.04 tuned 0 No fix
Ubuntu:25.10 tuned 0 No fix
Ubuntu:Pro:18.04:LTS tuned 0 No fix
Ubuntu:Pro:20.04:LTS tuned 0 No fix
openSUSE:Tumbleweed tuned 0 2.24.1.0+git.90c24ee-1.1

Related vulnerabilities