PatchSiren cyber security CVE debrief
CVE-2026-31477 Linux CVE debrief
A vulnerability in the Linux kernel's ksmbd module could allow an attacker to cause a denial of service or potentially execute arbitrary code due to memory leaks and a NULL pointer dereference in the smb2_lock() function. This issue arises from three error handling problems after list_del() detaches smb_lock from lock_list at no_check_cl. First, if vfs_lock_file() returns an unexpected error in the non-UNLOCK path, the out: handler leaks smb_lock and its flock. Second, if vfs_lock_file() returns -ENOENT in the UNLOCK path, it also leaks smb_lock and flock. Third, in the rollback path, smb_flock_init() can return NULL on allocation failure, leading to a kernel NULL pointer deref. To
- Vendor
- Linux
- Product
- Unknown
- CVSS
- HIGH 7.5
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-04-22
- Original CVE updated
- 2026-11-11
- Advisory published
- 2026-04-22
- Advisory updated
- 2026-11-11
Who should care
Linux kernel developers and maintainers, Linux distribution vendors, and users of Linux-based systems should assess exposure and apply patches or mitigations as needed. Operators of affected systems must prioritize patching and review compensating controls. Vulnerability management and security teams need to monitor for potential exploitation attempts and review system logs.
Why it matters
A vulnerability in the Linux kernel's ksmbd module could allow an attacker to cause a denial of service or potentially execute arbitrary code. Linux kernel developers and maintainers, Linux distribution vendors, and users of Linux-based systems should assess exposure and apply patches or mitigations as needed.
- Denial of service due to memory leaks and NULL pointer dereference
- Potential execution of arbitrary code
- Need for patching and updating Linux kernel versions
- Monitoring system logs for potential exploitation attempts
Technical summary
The vulnerability is due to memory leaks and a NULL pointer dereference in the smb2_lock() function of the Linux kernel's ksmbd module. An attacker could potentially exploit this vulnerability to cause a denial of service or execute arbitrary code by triggering these issues after list_del() detaches smb_lock from lock_list. Fixing involves hoisting locks_free_lock()/kfree() to before the if(!rc) check in the UNLOCK branch, freeing smb_lock and flock before goto out in the non-UNLOCK branch, and adding a NULL check for locks_free_lock(rlock) in the shared cleanup.
Defensive priority
High
Recommended defensive actions
- Review and apply the available patches for the Linux kernel
- Update to a fixed version of the Linux kernel
- Monitor system logs for potential exploitation attempts
- Review compensating controls for exposed systems while remediation is scheduled and verified
- Check relevant monitoring, detection, and logs for exposed assets that need extra review
- Track exceptions, retest remediated assets, and close the item only after evidence is documented
- Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up
Evidence notes
The vulnerability was found via call-graph analysis using sqry. The affected versions of the Linux kernel are 5.15.1 to 6.1.168, 6.2 to 6.6.131, 6.7 to 6.12.80, 6.13 to 6.18.21, 6.19 to 6.19.11, and 7.0 rc1 to rc7. Source confidence is limited to patch analysis and call-graph review; defenders should verify specific exposure and patch applicability.
Sources and references
Verified primary and authoritative sources
-
CVE-2026-31477 CVE Program record
Publisher, destination, and source semantics verified
URL: https://www.cve.org/CVERecord?id=CVE-2026-31477
CVE Program - Official CVE Program record with source-provided CVE metadata.
-
CVE-2026-31477 NVD vulnerability detail
Publisher, destination, and source semantics verified
URL: https://nvd.nist.gov/vuln/detail/CVE-2026-31477
NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.
Supplemental references
-
Source reference
Unverified legacy reference
URL: https://git.kernel.org/stable/c/309b44ed684496ed3f9c5715d10b899338623512
416baaa9-dc9f-4396-8d5f-8c081fb06d67 - Patch
-
Source reference
Unverified legacy reference
URL: https://git.kernel.org/stable/c/3cdacd11b41569ce75b3162142240f2355e04900
416baaa9-dc9f-4396-8d5f-8c081fb06d67 - Patch
-
Source reference
Unverified legacy reference
URL: https://git.kernel.org/stable/c/91aeaa7256006d79a37298f5a1df23325db91599
416baaa9-dc9f-4396-8d5f-8c081fb06d67 - Patch
-
Source reference
Unverified legacy reference
URL: https://git.kernel.org/stable/c/aab42f0795620cf0d3955a520f571f697d0f9a2a
416baaa9-dc9f-4396-8d5f-8c081fb06d67 - Patch
-
Source reference
Unverified legacy reference
URL: https://git.kernel.org/stable/c/c9b95ef6f5039f19e46c3a521a4fe1752d91dfe9
416baaa9-dc9f-4396-8d5f-8c081fb06d67 - Patch
-
Source reference
Unverified legacy reference
URL: https://git.kernel.org/stable/c/cdac6f7e7e428dc70e3b5898ac6999a72ed13993
416baaa9-dc9f-4396-8d5f-8c081fb06d67 - Patch
Methodology and review provenance
AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.