TL;DR: A Linux kernel flaw in versions prior to the upstream fix lets a local unprivileged attacker race process exit, steal privileged file descriptors, and expose SSH host keys or /etc/shadow, according to Orca Security. The issue turns local access into a trust-breaker for host identity and privileged workload boundaries.
Editorial analysis by NHI Mgmt Group, based on content published by Orca Security: “Linux kernel vulnerability enables local theft of SSH host keys and /etc/shadow”.
Key questions
Q: What breaks when a Linux kernel file descriptor race is exploitable locally?
A: The break is in the kernel's exit-time trust boundary.
Q: Why does this kind of Linux bug create host impersonation risk?
A: Because SSH host private keys are identity material for the server itself.
Q: How should teams decide which Linux systems to patch first?
A: Patch systems where local compromise would be most damaging first: shared servers, developer workstations, CI runners, and cloud workloads that can reach privileged files.
Practitioner guidance
- Patch the kernel to the fixed commit or vendor backport Move affected Linux systems onto a kernel build that includes the upstream fix or an equivalent distribution backport, and verify the fix on every deployed image and running host.
- Reduce local shell reach on sensitive hosts Limit who can obtain local execution on servers that hold SSH host keys, password files, or privileged helper processes, especially shared systems and CI runners.
- Harden privileged helper workflows Review setuid-root or similar helpers that open sensitive files before privilege changes, and remove unnecessary access to SSH host key material and shadow data.
Bottom line: This Linux kernel flaw converts a narrow exit race into a path for stealing privileged file descriptors from local code execution.
Explore further
View Full Forum → | NHI Foundation Course → | Our Services → | Read the full analysis →
Kernel exit-window theft is a privileged-access lifecycle failure, not a simple file permission bug. The attack works because a privileged process can outlive the assumption that its file descriptors are still protected by normal access checks. Once the process enters exit, the race collapses the boundary between privileged and unprivileged observation. Practitioners should treat kernel state transitions as part of privileged identity governance, not as a separate infrastructure problem.
A few things that frame the scale:
- 1 in 4 organisations are already investing in dedicated NHI security capabilities, with an additional 60% planning to do so within the next twelve months, according to The State of Non-Human Identity Security.
- Only 1.5 out of 10 organisations are highly confident in their ability to secure NHIs, compared to nearly 1 in 4 for securing human identities, according to the same research.
A question worth separating out:
Q: Who is accountable when a host key or shadow file is exposed through a kernel bug?
A: Accountability is shared across platform, infrastructure, and identity owners because the failure crosses layer boundaries. Kernel patching belongs to system operations, while the downstream trust impact belongs to identity and security governance. Frameworks such as the NIST Cybersecurity Framework and zero-trust models both require that boundary.
👉 Read our full editorial: Linux kernel fd theft bug exposes SSH keys and shadow files
Kernel exit-window theft is a privileged-access lifecycle failure, not a simple file permission bug. The attack works because a privileged process can outlive the assumption that its file descriptors are still protected by normal access checks. Once the process enters exit, the race collapses the boundary between privileged and unprivileged observation. Practitioners should treat kernel state transitions as part of privileged identity governance, not as a separate infrastructure problem.
A few things that frame the scale:
- 1 in 4 organisations are already investing in dedicated NHI security capabilities, with an additional 60% planning to do so within the next twelve months, according to The State of Non-Human Identity Security.
- Only 1.5 out of 10 organisations are highly confident in their ability to secure NHIs, compared to nearly 1 in 4 for securing human identities, according to the same research.
A question worth separating out:
Q: Who is accountable when a host key or shadow file is exposed through a kernel bug?
A: Accountability is shared across platform, infrastructure, and identity owners because the failure crosses layer boundaries. Kernel patching belongs to system operations, while the downstream trust impact belongs to identity and security governance. Frameworks such as the NIST Cybersecurity Framework and zero-trust models both require that boundary.
👉 Read our full editorial: Linux kernel fd theft bug exposes SSH keys and shadow files
Kernel-level file descriptor theft creates identity exposure, not just memory disclosure. The important shift here is that the attacker is not reading arbitrary bytes from RAM. They are stealing already-authorised access to identity-bearing files that were opened inside a privileged execution path. That means the trust boundary is defined by descriptor lifecycle, not by static file permissions alone. For practitioners, the lesson is to treat privileged file handles as governed identity assets for as long as they remain open.
A question worth separating out:
Q: What should security teams do when /etc/shadow exposure is possible?
A: Treat it as a privilege-escalation precursor, not only a file disclosure event. Rotate or review local credentials where needed, look for suspicious access to shadow data, and confirm that the vulnerable kernel branch has been removed from all reachable systems before assuming the environment is safe.
👉 Read our full editorial: Linux kernel fd theft bug exposes SSH keys and shadow files