Bug 2499603 (CVE-2026-12080) - CVE-2026-12080 qemu-kvm: qemu-guest-agent: Local privilege escalation via symlink attack in guest-ssh-add-authorized-keys
Summary: CVE-2026-12080 qemu-kvm: qemu-guest-agent: Local privilege escalation via sym...
Keywords:
Status: NEW
Alias: CVE-2026-12080
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2499616
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-07-13 08:48 UTC by OSIDB Bzimport
Modified: 2026-07-13 09:34 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-07-13 08:48:30 UTC
When qmp_guest_ssh_add_authorized_keys adds an SSH key for an existing local user, the agent (running as root) decides whether to create the user's .ssh directory with a symlink-following directory test, and then writes and chowns the authorized_keys file using a plain chown (not lchown). A local unprivileged user who owns their home directory can pre-stage their .ssh directory (or the authorized_keys file) as a symbolic link so that, when the host or operator triggers a key add for that user, the root agent follows the link and transfers ownership of an arbitrary root-owned file or directory to the unprivileged user, who can then rewrite it to obtain root.

Patch:
https://patchew.org/QEMU/20260709105707.91209-1-kkostiuk@redhat.com/


Note You need to log in before you can comment on or make changes to this bug.