CVE-2025-38651: Linux kernel · landlock: Fix warning from KUnit tests
Affects Linux kernelSource GCVE Database
Not known to be exploited · CVSS 5.5 Medium.
Data as of 20 Nov 2026, 01:35 UTC
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 22 Aug 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 19 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 24.04 LTSlinux-azure-6.11pkg:deb/ubuntu/linux-azure-6.11?arch=source&distro=nobleOther threats | Affected
| Fixed in– |
Ubuntu 24.04 LTSlinux-gcp-6.11pkg:deb/ubuntu/linux-gcp-6.11?arch=source&distro=nobleOther threats | Affected
| Fixed in– |
Ubuntu 24.04 LTSlinux-hwe-6.11pkg:deb/ubuntu/linux-hwe-6.11?arch=source&distro=nobleOther threats | Affected
| Fixed in– |
Ubuntu 24.04 LTSlinux-intelpkg:deb/ubuntu/linux-intel?arch=source&distro=nobleOther threats | Affected
| Fixed in– |
Ubuntu 24.04 LTSlinux-lowlatency-hwe-6.11pkg:deb/ubuntu/linux-lowlatency-hwe-6.11?arch=source&distro=nobleOther threats | Affected
| Fixed in– |
Ubuntu 24.04 LTSlinux-oem-6.8pkg:deb/ubuntu/linux-oem-6.8?arch=source&distro=nobleOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A fix is available that clamps the value passed to get_id_range() and replaces the incorrect MAX() macro with max(). Users should apply the updated Linux kernel versions that include this patch. No additional mitigation is required as the issue is resolved by the official fix.
Description
A warning issue in the Linux kernel's landlock security module related to KUnit tests has been fixed. The problem was caused by the get_id_range() function expecting a positive value, but get_random_u8() could return zero, leading to warnings during testing. The fix involves clamping the value to ensure it is positive and replacing the incorrect use of MAX() with max(). The fix was validated by running tests multiple times without failure. This issue affects specific Linux kernel versions and has a medium severity rating.
References
- ubuntu.com/security/CVE-2025-38651 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2025-38651 (opens in a new tab)
- git.kernel.org/linus/e0a69cf2c03e61bd8069becb97f66c173d0d1fa1 (opens in a new tab)
- git.kernel.org/stable/c/127183361b69dbb7ac3246ad4726f93400481249 (opens in a new tab)
- git.kernel.org/stable/c/7d9ec2cfe12dd0d7c1a58213b9bef1bec66a3189 (opens in a new tab)
- git.kernel.org/stable/c/e0a69cf2c03e61bd8069becb97f66c173d0d1fa1 (opens in a new tab)