Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-98113 Overview
CVE-2026-98113 is a kernel log flooding vulnerability in the Linux kernel's ksmbd in-kernel SMB server. An authenticated client can submit a Discretionary Access Control List (DACL) containing many structurally valid but unmapped Security Identifiers (SIDs). Each mapping failure generated a dedicated kernel error message, allowing a single request to produce hundreds of log entries. The upstream fix rate limits the error output so a client cannot flood the kernel ring buffer.
Critical Impact
An authenticated SMB client can abuse unmapped SIDs inside a DACL to flood dmesg with error messages, degrading log integrity and potentially masking other security events.
Affected Products
- Linux kernel versions shipping ksmbd prior to the patched stable releases
- Distributions that enable the ksmbd SMB server module
- Systems exposing ksmbd shares to authenticated clients
Discovery Timeline
- 2026-09-25 - CVE-2026-98113 published to the National Vulnerability Database (NVD)
- 2026-09-30 - Last updated in NVD database
Technical Details for CVE-2026-98113
Vulnerability Analysis
The vulnerability resides in the ksmbd authorization code path that resolves SIDs embedded inside a DACL during SMB access-control processing. When ksmbd encounters a SID that it cannot map to a local identity, it emits an error entry to the kernel log. The DACL format permits many Access Control Entries (ACEs), and each unmapped SID produces its own log line. A single malicious request therefore amplifies into hundreds of writes to the kernel ring buffer.
Although the issue does not corrupt memory or escalate privileges, uncontrolled kernel logging represents a denial-of-service primitive against observability. Flooded logs can overwrite earlier entries, exhaust journald storage, trigger I/O pressure on /var/log, and obscure concurrent intrusion indicators. The fix applies rate limiting to the message using the kernel's standard _ratelimited printk variants, aligning the warning behavior with other defensive paths in the SMB stack.
Root Cause
The root cause is unbounded logging on an attacker-controlled input path. ksmbd trusted that the number of ACEs processed per request would remain small and used an unrated pr_err style call. Because the DACL size is attacker-controlled within SMB protocol limits, the error path scaled linearly with input size.
Attack Vector
Exploitation requires an authenticated SMB session against a host running ksmbd. The client crafts a security descriptor whose DACL enumerates many structurally valid SIDs that do not map to any local principal. Submitting the request through standard SMB operations that set a security descriptor triggers the mapping routine and produces one error message per unmapped SID.
The vulnerability is a log-flooding denial-of-service pattern. No synthetic exploit code is published alongside the upstream commits. See the kernel commits 13af319, 30dbb08, 54cb2a9, and feca5e7 for the applied fix.
Detection Methods for CVE-2026-98113
Indicators of Compromise
- Sudden bursts of ksmbd SID mapping error messages in dmesg or the systemd journal originating from a single SMB session.
- Rapid growth of /var/log/kern.log or journald storage shortly after an authenticated SMB connection.
- Repeated SMB SET_INFO or create requests from the same client carrying oversized security descriptors.
Detection Strategies
- Monitor kernel log volume per source IP for SMB clients and alert on anomalous spikes correlated with ksmbd subsystem tags.
- Parse ksmbd error strings related to SID mapping and threshold them per session identifier.
- Correlate authenticated SMB session establishment with concurrent kernel log pressure to isolate the responsible principal.
Monitoring Recommendations
- Forward kernel logs to a centralized log pipeline and apply rate-based detections on ksmbd error categories.
- Track /var/log disk utilization and journald rotation events on hosts exposing ksmbd shares.
- Review SMB authentication logs to identify which accounts can reach vulnerable hosts.
How to Mitigate CVE-2026-98113
Immediate Actions Required
- Upgrade affected Linux kernels to a stable release that includes the referenced ksmbd commits.
- Restrict ksmbd share access to trusted authenticated users and network segments until patched.
- Enable kernel log rotation and size limits so a flooding attempt cannot exhaust storage.
Patch Information
The fix rate limits the unmapped SID error message in ksmbd. Backports are available in the stable kernel commits 13af319, 30dbb08, 54cb2a9, and feca5e7. Apply the distribution kernel update that incorporates these changes.
Workarounds
- Unload the ksmbd module on hosts that do not require in-kernel SMB serving and use a userspace SMB server instead.
- Firewall SMB ports (445/tcp) to allow only vetted client ranges.
- Configure journald RateLimitIntervalSec and RateLimitBurst to blunt the impact of log amplification until the patch is deployed.
# Configuration example: constrain journald log amplification
sudo mkdir -p /etc/systemd/journald.conf.d
cat <<'EOF' | sudo tee /etc/systemd/journald.conf.d/ksmbd-ratelimit.conf
[Journal]
RateLimitIntervalSec=10s
RateLimitBurst=200
SystemMaxUse=500M
EOF
sudo systemctl restart systemd-journald
# Optional: unload ksmbd if not required
sudo modprobe -r ksmbd
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

