Debian's Long Term Support team has shipped an emergency kernel update for Debian 12 (bookworm) addressing a remotely exploitable, unauthenticated code execution vulnerability in NFSD — the in-kernel Network File System server. The flaw is an out-of-bounds write in the NFSD implementation that can be triggered by a crafted SEQUENCE compound request sent to an exposed NFSv4 service. Because NFSD executes in kernel space, a successful exploit doesn't just compromise a service — it gives an attacker ring-0 execution on the host. The fix lands in Debian kernel package version 6.1.192-3.
This is the class of vulnerability that keeps IR teams up at night: a pre-authentication, network-reachable memory corruption bug in a service that is routinely exposed on internal networks and — far too often — directly to the internet. NFS servers frequently sit on storage tiers holding backups, VM images, and shared application data. They are high-value, low-monitoring targets. If you operate Debian bookworm systems with nfs-kernel-server enabled, treat this as patch-now work, not next-maintenance-window work.
No CVE identifier has been assigned in the advisory text available to us at the time of writing, and no CVSS score has been published. Given the unauthenticated, network-triggerable kernel code execution impact, defenders should plan around a critical-severity assumption until official scoring is released.
Technical Analysis
Affected Products and Versions
- Platform: Debian GNU/Linux 12 (bookworm), including bookworm LTS-track systems
- Component: Linux kernel NFSD (
fs/nfsd), the kernel-space NFSv4 server - Vulnerable: All Debian 12 kernel builds prior to 6.1.192-3
- Fixed:
linux-image-6.1.0-*packages at version 6.1.192-3 and later - Exposure requirement: The host must be running the kernel NFS server (
nfsd, typically via thenfs-kernel-serverpackage) and reachable on the NFS service ports — TCP/UDP 2049, plus associated rpcbind (111) and mountd/lockd/statd ports in legacy v3 configurations. Note that NFSv4-only deployments consolidate onto 2049, but that single port is sufficient for exploitation because the vulnerable code path is exercised via NFSv4 compound operations.
Systems running NFS only as a client, or serving NFS via userspace implementations (e.g., Ganesha), are not in the vulnerable code path, though client-side exposure is a separate conversation.
Root Cause and Attack Mechanics
The vulnerability lives in how NFSD processes the SEQUENCE operation — the operation that opens every NFSv4 compound request and establishes the session/slot context for everything that follows. NFSv4 clients send compound RPCs: a single request containing multiple operations (SEQUENCE, PUTFH, READ, WRITE, etc.) that the server decodes and executes in order. Because SEQUENCE is the mandatory lead operation of every compound on a session, the vulnerable parsing/dispatch logic is reachable before any meaningful authentication or authorization gate — an attacker only needs network reachability to the NFSv4 port.
The flaw is an out-of-bounds write: attacker-controlled fields within the crafted SEQUENCE compound request cause the kernel to write data outside the bounds of an allocated buffer. From a defensive standpoint, the mechanics matter for three reasons:
- Pre-auth reachability. No valid Kerberos principal, no exported-share credential, no session in good standing is required. Any host that can open a TCP connection to 2049 can exercise the vulnerable path.
- Kernel-space impact. NFSD runs as kernel threads (
[nfsd]). A controlled OOB write in this context is a direct path to kernel memory corruption — privilege escalation to ring-0, kernel data structure tampering (cred structures, page tables), or, at minimum, a reliable denial of service via kernel panic. - Crash noise. Failed exploitation attempts of a memory corruption bug this deep in the kernel will frequently produce
Oops,BUG, or general protection fault splats in the kernel ring buffer referencingnfsdornfsd4call paths. That crash telemetry is your best pre-compromise detection surface.
Exploitation Status
At the time of publication, there is no confirmed public proof-of-concept, no confirmed in-the-wild exploitation, and the issue is not listed in CISA's Known Exploited Vulnerabilities catalog. That status should not breed complacency. NFS servers are perennial ransomware and data-theft targets, kernel NFSv4 parser bugs have historically been weaponized quickly after disclosure, and the technical barrier here — sending a crafted compound RPC to a listening port — is low. Assume exploit development is underway and prioritize accordingly.
Detection & Response
This is a kernel-space memory corruption flaw, so detection strategy splits into two layers: (1) crash and integrity telemetry from the kernel itself that indicates exploitation attempts, and (2) post-exploitation behavior on the host, because a successful ring-0 exploit typically ends with an operator spawning a shell or implant from kernel context — and those processes show an unmistakable lineage.
SIGMA Rules
---
title: Root Shell or Command Execution Spawned by Kernel Thread Context
id: 9f2c7a41-3b8e-4d15-a6c2-8e1f4b7d9c05
status: experimental
description: Detects shells or command interpreters spawned with a kernel thread (kthreadd/nfsd) as parent — a classic post-exploitation artifact of kernel-space code execution such as NFSD memory corruption exploits calling commit_creds and spawning a userspace root shell.
references:
- https://linuxsecurity.com/advisories/deblts/debian-dla-4942-1-linux
- https://attack.mitre.org/techniques/T1068/
- https://attack.mitre.org/techniques/T1059/004/
author: Security Arsenal
date: 2026/03/15
tags:
- attack.privilege_escalation
- attack.t1068
- attack.execution
- attack.t1059.004
logsource:
category: process_creation
product: linux
detection:
selection_parent_kernel:
ParentCommandLine|contains:
- '[kthreadd]'
- 'kthreadd'
- '[nfsd]'
selection_shell:
Image|endswith:
- '/sh'
- '/bash'
- '/dash'
- '/zsh'
- '/python'
- '/python3'
- '/perl'
- '/nc'
- '/ncat'
- '/socat'
condition: selection_parent_kernel and selection_shell
falsepositives:
- Extremely rare; legitimate kernel threads do not spawn interactive userspace shells in normal operations
level: critical
---
title: Kernel Oops or BUG Splat Referencing NFSD
id: 2e6b1d93-7c4f-4a28-b951-6d3f8a0e5c17
status: experimental
description: Detects kernel Oops, BUG, or general protection fault messages referencing nfsd or nfsd4 call paths in system logs — strong indicator of failed or successful exploitation attempts against the NFSD SEQUENCE out-of-bounds write vulnerability.
references:
- https://linuxsecurity.com/advisories/deblts/debian-dla-4942-1-linux
author: Security Arsenal
date: 2026/03/15
tags:
- attack.initial_access
- attack.t1190
logsource:
product: linux
service: syslog
detection:
selection_fault:
- 'Oops'
- 'BUG:'
- 'general protection fault'
- 'kernel NULL pointer dereference'
- 'KASAN'
- 'slab-out-of-bounds'
selection_nfsd:
- 'nfsd'
- 'nfsd4'
- 'svc_process'
- 'nfsd4_sequence'
condition: selection_fault and selection_nfsd
falsepositives:
- Unrelated kernel instability on heavily loaded NFS servers — investigate every hit regardless
level: high
---
title: NFSD Service Unexpectedly Enabled or Kernel Module Loaded
id: 4a8d5f60-1b97-4e32-9c84-7f2e6d1a3b58
status: experimental
description: Detects loading of the nfsd kernel module or starting of the NFS kernel server on systems where it may not be expected, increasing attack surface for the NFSD unauthenticated code execution vulnerability.
references:
- https://linuxsecurity.com/advisories/deblts/debian-dla-4942-1-linux
author: Security Arsenal
date: 2026/03/15
tags:
- attack.defense_evasion
- attack.persistence
logsource:
category: process_creation
product: linux
detection:
selection_modprobe:
Image|endswith:
- '/modprobe'
- '/insmod'
CommandLine|contains: 'nfsd'
selection_service:
Image|endswith:
- '/systemctl'
- '/service'
CommandLine|contains:
- 'nfs-server'
- 'nfs-kernel-server'
- 'nfsd'
condition: 1 of selection_*
falsepositives:
- Legitimate storage administration; baseline expected NFS servers and alert only on deviations
level: medium
KQL — Microsoft Sentinel / Defender
NFSD runs on Linux, but most mature SOCs ingest Linux syslog via CEF/Syslog forwarders into Sentinel, and many run Defender for Endpoint on their Linux server fleet. This query hunts both the crash telemetry layer and the post-exploitation process lineage layer:
// Hunt 1: Kernel crash telemetry referencing NFSD (exploitation attempts)
// Hunt 2: Shells spawned from kernel thread context (successful kernel exploitation)
let lookback = 14d;
let crashHunt = Syslog
| where TimeGenerated > ago(lookback)
| where ProcessName =~ "kernel" or SyslogMessage has_any ("Oops", "BUG:", "general protection fault", "slab-out-of-bounds", "KASAN")
| where SyslogMessage has_any ("nfsd", "nfsd4", "svc_process", "nfsd4_sequence")
| project TimeGenerated, Computer, SyslogMessage, SeverityLevel
| extend Hunt = "NFSD kernel fault - possible exploit attempt";
let lineageHunt =
union isfuzzy=true
(DeviceProcessEvents
| where TimeGenerated > ago(lookback)
| where InitiatingProcessFileName has_any ("kthreadd", "nfsd")
| where FileName has_any ("sh", "bash", "dash", "zsh", "python", "python3", "perl", "nc", "ncat", "socat")
| project TimeGenerated, DeviceName, FileName, ProcessCommandLine, InitiatingProcessFileName, AccountName
| extend Hunt = "Shell spawned from kernel thread context"),
(SecurityEvent
| where TimeGenerated > ago(lookback)
| where ParentProcessName has_any ("kthreadd", "nfsd")
| project TimeGenerated, Computer, NewProcessName, CommandLine, ParentProcessName, Account
| extend Hunt = "Suspicious kernel-parent process lineage");
union isfuzzy=true crashHunt, lineageHunt
| sort by TimeGenerated desc
Velociraptor VQL
Use this artifact to sweep your Linux fleet for the two things that matter right now: hosts running a vulnerable kernel with the nfsd module loaded, and live NFSD listener exposure. This is your scoping hunt before remediation.
-- Security Arsenal: NFSD Exposure Sweep (DLA-4942-1)
-- Identifies hosts running vulnerable kernels with nfsd loaded and listening
SELECT uname().release AS KernelVersion,
split(string=uname().release, sep="-")[0] AS KernelBase,
(SELECT Pid, Name, CommandLine FROM pslist()
WHERE Name =~ "nfsd|kthreadd" AND Name =~ "nfsd") AS NfsdThreads,
(SELECT Pid, Name, Address, Port, State, Status FROM netstat()
WHERE Port = 2049 OR Port = 111) AS NfsListeners,
read_file(filename="/proc/modules") =~ "nfsd" AS NfsdModuleLoaded,
read_file(filename="/proc/version") AS ProcVersion
FROM scope()
Any row where NfsdModuleLoaded is true AND KernelVersion reports a build below 6.1.192 is a confirmed exposed host and goes to the top of your patch queue.
Remediation Script
Run this verification and remediation script across your Debian 12 fleet (via Ansible, Salt, or your MDM of choice). It checks the running kernel, determines whether NFSD is loaded, applies the patched package, and reports hosts requiring a reboot.
#!/bin/bash
# Security Arsenal - DLA-4942-1 NFSD Vulnerability Verify/Remediate (Debian 12)
# Checks kernel version, NFSD exposure, applies fixed kernel 6.1.192-3, flags reboot need.
FIXED_MAJOR_MINOR="6.1.192"
FIXED_DEB_REV="3"
EXPOSED=0
NEEDS_PATCH=0
echo "=== NFSD Exposure Assessment (DLA-4942-1) ==="
# 1. Running kernel version
RUNNING="$(uname -r)"
echo "[*] Running kernel: ${RUNNING}"
# 2. Is nfsd loaded?
if grep -q '^nfsd' /proc/modules; then
echo "[!] WARNING: nfsd kernel module is LOADED - host is in the vulnerable code path"
EXPOSED=1
else
echo "[+] nfsd module not loaded - kernel NFS server not active"
fi
# 3. Is anything listening on 2049/111?
if ss -lntup 2>/dev/null | grep -Eq ':(2049|111)\b'; then
echo "[!] WARNING: NFS-related listener detected (port 2049 and/or 111)"
ss -lntup 2>/dev/null | grep -E ':(2049|111)\b'
EXPOSED=1
fi
# 4. Version comparison against fixed build
if dpkg --compare-versions "${RUNNING#*-}" lt "${FIXED_MAJOR_MINOR}-${FIXED_DEB_REV}" 2>/dev/null \
|| ! echo "${RUNNING}" | grep -q "6.1"; then
echo "[!] Running kernel predates fixed version ${FIXED_MAJOR_MINOR}-${FIXED_DEB_REV} - PATCH REQUIRED"
NEEDS_PATCH=1
fi
# 5. Apply the update
if [ "${NEEDS_PATCH}" -eq 1 ]; then
echo "[*] Updating package lists and installing fixed kernel..."
apt-get update -qq
apt-get install -y --only-upgrade linux-image-amd64 linux-headers-amd64 2>/dev/null \
|| apt-get install -y linux-image-amd64
echo "[+] Kernel package updated. A REBOOT IS REQUIRED to load the fixed kernel."
fi
# 6. Interim hardening if reboot must be deferred
if [ "${NEEDS_PATCH}" -eq 1 ] && [ "${EXPOSED}" -eq 1 ]; then
echo "[!] INTERIM: If reboot is deferred, restrict NFS exposure now:"
echo " - Limit /etc/exports to trusted subnets only"
echo " - Firewall port 2049 to known NFS clients:"
echo " nft add rule inet filter input tcp dport 2049 ip saddr <trusted_cidr> accept"
echo " nft add rule inet filter input tcp dport 2049 drop"
echo " - If NFS is not required: systemctl stop nfs-server && modprobe -r nfsd"
fi
echo "=== Assessment complete. EXPOSED=${EXPOSED} NEEDS_PATCH=${NEEDS_PATCH} ==="
Remediation
1. Patch immediately. Update all Debian 12 (bookworm) systems to kernel package version 6.1.192-3 or later, and reboot into the fixed kernel. A package upgrade without a reboot leaves the vulnerable kernel in memory — verify post-reboot with uname -r. The authoritative reference is Debian LTS Advisory DLA-4942-1; confirm package availability via apt policy linux-image-amd64 against the bookworm-security / LTS repositories.
2. Enumerate your exposure first. Many organizations don't have a clean inventory of which Linux hosts actually run kernel NFS. Sweep for listening 2049/111 and loaded nfsd modules before you patch, and prioritize: (a) internet-facing or DMZ NFS servers, (b) storage hosts reachable from user or server VLANs broadly, (c) backup and VM-datastore targets. Any NFS server reachable from the internet should be treated as an incident candidate — hunt it, then patch it.
3. Reduce the attack surface where patching lags. If you cannot patch and reboot inside 24–48 hours:
- Restrict
/etc/exportsto explicit trusted client subnets — never wildcard exports. - Enforce host-based firewalling (nftables/iptables) so 2049 (and 111 for legacy v3) accepts only from known NFS client CIDRs.
- Disable NFS entirely on hosts where it isn't a hard requirement:
systemctl disable --now nfs-serverandmodprobe -r nfsd. A module that isn't loaded can't be exploited. - Prefer NFSv4-only operation (
RPCNFSDOPTS="-N 2 -N 3"in/etc/default/nfs-kernel-server) to shrink the listener footprint — though note this does not mitigate this specific flaw, which is in the v4 compound path.
4. Hunt before you close the ticket. For any host that was exposed and unpatched for a meaningful window, run the crash-telemetry and process-lineage hunts above across the full exposure period. Kernel Oops splats referencing nfsd, shells parented to kernel threads, or unexpected outbound connections from storage hosts are escalation triggers — engage your IR process, capture memory if the host is still live, and do not simply patch and move on.
5. Institutionalize the lesson. Kernel NFS is network-exposed ring-0 code. Every organization should have a policy decision on record for where in-kernel NFS is acceptable versus userspace alternatives, NFS servers should live in monitored network segments with egress filtering (storage servers have almost no legitimate reason to initiate outbound internet connections), and kernel patch SLAs for remotely exploitable pre-auth bugs should be measured in days, not weeks.
Category
vulnerability-management
Related Resources
Security Arsenal Penetration Testing Services AlertMonitor Platform Book a SOC Assessment vulnerability-management Intel Hub
Is your security operations ready?
Get a free SOC assessment or see how AlertMonitor cuts through alert noise with automated triage.