Skip to contentSkip to conversation

CVE-2025-68733: smack: fix bug: unprivileged task can create labels

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Dec 24, 2025

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

smack: fix bug: unprivileged task can create labels

If an unprivileged task is allowed to relabel itself (/smack/relabel-self is not empty),
it can freely create new labels by writing their names into own /proc/PID/attr/smack/current

This occurs because do_setattr() imports
the provided label in advance,
before checking "relabel-self" list.

This change ensures that the "relabel-self" list
is checked before importing the label.

The Linux kernel CVE team has assigned CVE-2025-68733 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 4.4 with commit 38416e53936ecf896948fdeffc36b76979117952 and fixed in 6.12.63 with commit ac9fce2efabad37c338aac86fbe100f77a080e59
	Issue introduced in 4.4 with commit 38416e53936ecf896948fdeffc36b76979117952 and fixed in 6.17.13 with commit 64aa81250171b6bb6803e97ea7a5d73bfa061f6e
	Issue introduced in 4.4 with commit 38416e53936ecf896948fdeffc36b76979117952 and fixed in 6.18.2 with commit 60e8d49989410a7ade60f5dadfcd979c117d05c0
	Issue introduced in 4.4 with commit 38416e53936ecf896948fdeffc36b76979117952 and fixed in 6.19-rc1 with commit c147e13ea7fe9f118f8c9ba5e96cbd644b00d6b3

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2025-68733

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
security/smack/smack_lsm.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/ac9fce2efabad37c338aac86fbe100f77a080e59
	https://git.kernel.org/stable/c/64aa81250171b6bb6803e97ea7a5d73bfa061f6e
	https://git.kernel.org/stable/c/60e8d49989410a7ade60f5dadfcd979c117d05c0
	https://git.kernel.org/stable/c/c147e13ea7fe9f118f8c9ba5e96cbd644b00d6b3