selinux: preserve NATIVE_LABELS on already-initialized sb in set_mnt_opts
In the Linux kernel, the following vulnerability has been resolved: selinux: preserve NATIVE_LABELS on already-initialized sb in set_mnt_opts When an NFSv4 filesystem exported with security_label is mounted a second time, sget_fc() returns the existing superblock and nfs_get_root() calls security_sb_set_mnt_opts() again on it. Since the superblock is already SB_INITIALIZED, selinux_set_mnt_opts() takes an early exit without setting SECURITY_LSM_NATIVE_LABELS in *set_kern_flags. nfs_get_root() then sees kflags without SECURITY_LSM_NATIVE_LABELS set and clears NFS_CAP_SECURITY_LABEL on the shared nfs_server, silently disabling per-file labeling for both the new and the original mount. Commit 3815a245b501 ("security/selinux: fix SECURITY_LSM_NATIVE_LABELS on reused superblock") fixed the same problem in selinux_sb_clone_mnt_opts(). The reused-superblock path for a plain second mount now goes through sb_set_mnt_opts rather than sb_clone_mnt_opts, so it needs the same treatment: on both SE_SBINITIALIZED early exits, set SECURITY_LSM_NATIVE_LABELS in *set_kern_flags when the superblock was already using SECURITY_FS_USE_NATVE.
CVE-2026-99052
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: cve:CVE-2026-99052
Linux
Source reference: /containers/cna/affected/0/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Linux
Source reference: /containers/cna/affected/1/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "eb9ae686507bc5a5ca78e6b3fbe629cd5cc67864",
"lessThan": "a545def625860d4ccedc14fe45e884a62a041cef",
"versionType": "git"
},
{
"status": "affected",
"version": "eb9ae686507bc5a5ca78e6b3fbe629cd5cc67864",
"lessThan": "a6da93c625b3557dd23ff6db45d2d1bafeae1565",
"versionType": "git"
},
{
"status": "affected",
"version": "eb9ae686507bc5a5ca78e6b3fbe629cd5cc67864",
"lessThan": "5509d498e1b9edafebd5a60ba3cb9ecfda23dc2b",
"versionType": "git"
},
{
"status": "affected",
"version": "eb9ae686507bc5a5ca78e6b3fbe629cd5cc67864",
"lessThan": "c997832414f1d846de0a1fa38d7d4f62ba2ea917",
"versionType": "git"
},
{
"status": "affected",
"version": "eb9ae686507bc5a5ca78e6b3fbe629cd5cc67864",
"lessThan": "28b7260548af3d35773477993ad4e4de41578dd7",
"versionType": "git"
}
],
"programFiles": [
"security/selinux/hooks.c"
],
"defaultStatus": "unaffected"
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "3.11"
},
{
"status": "unaffected",
"version": "0",
"lessThan": "3.11",
"versionType": "semver"
},
{
"status": "unaffected",
"version": "6.6.160",
"versionType": "semver",
"lessThanOrEqual": "6.6.*"
},
{
"status": "unaffected",
"version": "6.12.113",
"versionType": "semver",
"lessThanOrEqual": "6.12.*"
},
{
"status": "unaffected",
"version": "6.18.57",
"versionType": "semver",
"lessThanOrEqual": "6.18.*"
},
{
"status": "unaffected",
"version": "7.2.11",
"versionType": "semver",
"lessThanOrEqual": "7.2.*"
},
{
"status": "unaffected",
"version": "7.3",
"versionType": "original_commit_for_fix",
"lessThanOrEqual": "*"
}
],
"programFiles": [
"security/selinux/hooks.c"
],
"defaultStatus": "affected"
}
]- Related CVEs
- CVE-2026-99052
Source reference:
/cveMetadata/cveId
Publisher severity
No explicit severity was provided.
- Event
- #52881 · Revision 1
- Added to Heist Feed
- Publisher date