Linux Kernel Smack Label Creation Vulnerability for Unprivileged Tasks

Vulnerability

A vulnerability in the Linux kernel's Smack (Simplified Mandatory Access Control Kernel) implementation allows unprivileged tasks to create new labels. This issue arises when a task is permitted to relabel itself and the 'relabel-self' list is not empty. The vulnerability exists in the Linux kernel stable tree. The problem occurs because the 'do_setattr()' function imports the specified label before verifying the 'relabel-self' list, enabling the creation of arbitrary labels by writing to '/proc/PID/attr/smack/current'.

Impact

Exploitation of this vulnerability allows unprivileged tasks to create and modify Smack labels, potentially leading to unauthorized access or privilege escalation by manipulating the security context of processes.

Reproduction

To reproduce this vulnerability, an unprivileged task must be allowed to relabel itself by ensuring that the '/smack/relabel-self' attribute is not empty. Once this condition is met, the task can create new labels by writing their names into the '/proc/PID/attr/smack/current' file. The 'do_setattr()' function will import the labels before checking the 'relabel-self' list, allowing the arbitrary label creation to occur.

Remediation

Users can update to the latest version of the Linux kernel where this vulnerability has been addressed. Instructions for updating the kernel can be found in the official Linux documentation.

Added: Dec 24, 2025, 11:19 AM
Updated: Dec 24, 2025, 11:19 AM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
2.5
exploitability
4.3
remediation
7.7
relevance
1.5
threat
4.8
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.