CVE-2025-38651: Linux kernel · landlock: Fix warning from KUnit tests
Source GCVE Database
Not known to be exploited · CVSS 5.5 Medium.
Data as of 19 Nov 2026, 02:40 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 18 Nov 2026.
What to do
AI-suggested
A fix is available that clamps the input value to ensure it is positive and replaces the incorrect MAX() macro with max(). Users should update to the fixed Linux kernel version that includes this patch to eliminate the warning during KUnit tests. No additional mitigation is required as this is a test warning fix.
Description
CVE-2025-38651 addresses a warning in the Linux kernel's landlock security module related to KUnit tests. The issue arises because get_id_range() expects a positive value, but get_random_u8() can return zero, causing a warning during testing. The fix clamps the value to ensure it is positive, resolving the warning without impacting functionality.
References
- nvd.nist.gov/vuln/detail/CVE-2025-38651 (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)