{"id":12919,"date":"2026-05-16T10:03:41","date_gmt":"2026-05-16T10:03:41","guid":{"rendered":"https:\/\/serisec.com\/index.php\/2026\/05\/16\/critical-linux-kernel-flaw-ssh-keysign-pwn-exposes-ssh-keys-and-shadow-passwords\/"},"modified":"2026-05-16T10:03:41","modified_gmt":"2026-05-16T10:03:41","slug":"critical-linux-kernel-flaw-ssh-keysign-pwn-exposes-ssh-keys-and-shadow-passwords","status":"publish","type":"post","link":"https:\/\/serisec.com\/index.php\/2026\/05\/16\/critical-linux-kernel-flaw-ssh-keysign-pwn-exposes-ssh-keys-and-shadow-passwords\/","title":{"rendered":"Critical Linux Kernel Flaw \u2018ssh-keysign-pwn\u2019 Exposes SSH Keys and Shadow Passwords"},"content":{"rendered":"<p>    Critical Linux Kernel Flaw \u2018ssh-keysign-pwn\u2019 Exposes SSH Keys and Shadow Passwords<br \/>\n \t<BR><br \/>\n<BR><\/BR><br \/>\n    <!-- no image --><br \/>\n \t<BR><br \/>\n<BR><\/BR><\/p>\n<div>\n<p>A newly disclosed <a href=\"https:\/\/cybersecuritynews.com\/fragnesia-linux-vulnerability\/\" target=\"_blank\" rel=\"noreferrer noopener\">Linux kernel vulnerability <\/a>is raising serious concerns across the security community, as it allows attackers to access highly sensitive data, including SSH private keys and password hashes, on affected systems. <\/p>\n<p>Tracked as<a href=\"https:\/\/nvd.nist.gov\/vuln\/detail\/CVE-2026-46333\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">\u00a0CVE-2026-46333<\/a>, the flaw has been nicknamed\u00a0\u201cssh-keysign-pwn\u201d\u00a0and impacts a wide range of Linux distributions.<\/p>\n<p>Linux system hit with multiple vulnerabilities in 2026, including<span style=\"box-sizing: border-box; margin: 0px; padding: 0px;\">\u00a0<a href=\"https:\/\/cybersecuritynews.com\/8-year-old-linux-kernel-bug\/\" target=\"_blank\" rel=\"noopener\">Dirty Pipe<\/a>, <a href=\"https:\/\/www.openwall.com\/lists\/oss-security\/2022\/10\/18\/4\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">io_uring UAF<\/a>, <a href=\"https:\/\/cybersecuritynews.com\/linux-kernel-0-day-copy-fail\/\" target=\"_blank\" rel=\"noreferrer noopener\">Copy Fail<\/a>, <a href=\"https:\/\/www.openwall.com\/lists\/oss-security\/2026\/05\/08\/1\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">io_uring ZCRX Freelist<\/a>, <a href=\"https:\/\/cybersecuritynews.com\/dirty-frag-linux-vulnerability\/\" target=\"_blank\" rel=\"noreferrer noopener\">Dirty Frag<\/a>, and <a href=\"https:\/\/cybersecuritynews.com\/fragnesia-linux-vulnerability\/\" target=\"_blank\" rel=\"noreferrer noopener\">Fragnesia<\/a><\/span>.<\/p>\n<h2 class=\"wp-block-heading\" id=\"h-linux-kernel-vulnerability-ssh-keysign-pwn\"><strong>Linux Kernel Vulnerability \u201cssh-keysign-pwn\u201d<\/strong><\/h2>\n<p>The issue originates in the Linux kernel\u2019s\u00a0ptrace access control logic, specifically within the\u00a0__ptrace_may_access()\u00a0function. <\/p>\n<p>This mechanism is supposed to restrict how processes can inspect or interact with other processes. However, a logic flaw tied to the kernel\u2019s \u201cdumpability\u201d checks creates a dangerous race condition.<\/p>\n<p>In simple terms, when a privileged process (such as\u00a0ssh-keysign\u00a0or\u00a0chage) is shutting down, there is a short window where its memory context is cleared (mm = NULL) but its open file descriptors still exist. During this gap, an unprivileged local attacker can exploit the flaw using\u00a0pidfd_getfd()\u00a0to steal those file descriptors.<\/p>\n<p>This effectively bypasses intended permission checks, allowing unauthorized access to sensitive files.<\/p>\n<p>Security researchers, including Qualys, warn that this vulnerability can lead to severe consequences:<\/p>\n<ul class=\"wp-block-list\">\n<li>Theft of SSH private keys enables attackers to impersonate systems or users.<\/li>\n<li>Man-in-the-middle (MitM) attacks until compromised keys are rotated.<\/li>\n<li>Full read access to\u00a0\/etc\/shadow, exposing password hashes for offline cracking.<\/li>\n<li>Potential lateral movement across infrastructure using stolen credentials.<\/li>\n<\/ul>\n<p>Because SSH keys are often reused across environments, a single compromised system can cascade into broader network access.<\/p>\n<h3 class=\"wp-block-heading\" id=\"h-affected-systems\"><strong>Affected Systems<\/strong><\/h3>\n<p>The vulnerability affects\u00a0most Linux distributions\u00a0running kernels before the patch released on\u00a0May 14, 2026. This includes:<\/p>\n<ul class=\"wp-block-list\">\n<li>Ubuntu<\/li>\n<li>Debian<\/li>\n<li>Arch Linux<\/li>\n<li>CentOS<\/li>\n<li>Raspberry Pi OS<\/li>\n<\/ul>\n<p>Given that the flaw has reportedly existed for\u00a0over six years, many long-term deployments may be exposed.<\/p>\n<p>The core issue lies in how the kernel handles processes without a memory context. The \u201cdumpability\u201d flag, originally designed to control core dumps, is reused in ptrace checks, even when it no longer makes logical sense.<\/p>\n<p>When a process exits, its memory is released before its file descriptors are cleaned up. The <a href=\"https:\/\/cybersecuritynews.com\/dirty-frag-linux-vulnerability\/\" target=\"_blank\" rel=\"noreferrer noopener\">kernel fails to properly enforce access restrictions<\/a> during this transitional state, allowing attackers to bypass security boundaries.<\/p>\n<p>The <a href=\"https:\/\/github.com\/0xdeadbeefnetwork\/ssh-keysign-pwn\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">GitHub PoC\u00a0<code>ssh-keysign-pwn<\/code>\u00a0demonstrates<\/a> exactly how to weaponize this race condition on pre\u2011<code>31e62c2ebbfd<\/code>\u00a0kernels.<\/p>\n<p>The PoC repeatedly spawns attack processes that race against a privileged helper\u2019s exit path, using\u00a0<code>pidfd_getfd<\/code>\u00a0to grab file descriptors to root\u2011owned files before they are closed.<\/p>\n<p>According to public analysis, the exploit typically succeeds within 100\u20132000 attempts, making it practical on real systems.<\/p>\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/raw.githubusercontent.com\/0xdeadbeefnetwork\/ssh-keysign-pwn\/main\/demo.gif?ssl=1\" alt=\"\"><\/figure>\n<p>Two core exploitation paths are highlighted:<\/p>\n<ul class=\"wp-block-list\">\n<li>Targeting\u00a0<code>ssh-keysign<\/code>\u00a0to read SSH host private keys from\u00a0<code>\/etc\/ssh\/ssh_host_{ecdsa,ed25519,rsa}_key<\/code>\n<\/li>\n<li>Targeting\u00a0<code>chage -l &lt;user&gt;<\/code>\u00a0to read\u00a0<code>\/etc\/shadow<\/code>\u00a0via a similar file\u2011descriptor theft pattern<\/li>\n<\/ul>\n<h2 class=\"wp-block-heading\" id=\"h-mitigations\"><strong>Mitigations<\/strong><\/h2>\n<p>Organizations should act immediately to reduce risk:<\/p>\n<ul class=\"wp-block-list\">\n<li>Apply the latest kernel patches that fix CVE-2026-46333.<\/li>\n<li>Rotate all SSH keys, especially on critical systems.<\/li>\n<li>Audit access to sensitive files, such as\u00a0\/etc\/shadow.<\/li>\n<li>Monitor for suspicious use of ptrace or pidfd-related system calls.<\/li>\n<li>Restrict local user access where possible, as exploitation requires local presence.<\/li>\n<\/ul>\n<p>As a public proof-of-concept (PoC) exploit has already been released on GitHub, it increases the likelihood of active exploitation in the wild. This significantly raises the urgency for patching.<\/p>\n<p>With SSH serving as the backbone of secure access across cloud and enterprise environments, the exposure of private keys poses a high-impact risk that cannot be ignored.<\/p>\n<p class=\"has-text-align-center has-background\" style=\"background:linear-gradient(180deg,rgb(238,238,238) 91%,rgb(169,184,195) 100%)\"><strong>Follow us on\u00a0<a href=\"https:\/\/news.google.com\/publications\/CAAqMggKIixDQklTR3dnTWFoY0tGV041WW1WeWMyVmpkWEpwZEhsdVpYZHpMbU52YlNnQVAB?hl=en-IN&amp;gl=IN&amp;ceid=IN:en\" target=\"_blank\" rel=\"noreferrer noopener\">Google News<\/a>,\u00a0<a href=\"https:\/\/www.linkedin.com\/company\/cybersecurity-news\/\" target=\"_blank\" rel=\"noreferrer noopener\">LinkedIn<\/a>,\u00a0and\u00a0<a href=\"https:\/\/x.com\/cyber_press_org\" target=\"_blank\" rel=\"noreferrer noopener\">X<\/a>\u00a0to Get More Instant Updates.<\/strong><\/p>\n<p>The post <a href=\"https:\/\/cybersecuritynews.com\/linux-kernel-vulnerability-ssh-keysign-pwn\/\">Critical Linux Kernel Flaw \u2018ssh-keysign-pwn\u2019 Exposes SSH Keys and Shadow Passwords<\/a> appeared first on <a href=\"https:\/\/cybersecuritynews.com\/\">Cyber Security News<\/a>.<\/p>\n<\/div>\n<p> \t<BR><br \/>\n <BR><\/BR><br \/>\n    Dhivya<br \/>\n \t<BR><br \/>\n<BR><\/BR><br \/>\n<a href=\"https:\/\/cybersecuritynews.com\/linux-kernel-vulnerability-ssh-keysign-pwn\/\">Go to cyber-security-news<\/a><br \/>\n \t<BR><br \/>\n <BR><\/BR><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Critical Linux Kernel Flaw \u2018ssh-keysign-pwn\u2019 Exposes SSH Keys and Shadow Passwords A newly disclosed Linux kernel vulnerability is raising serious concerns across the security community, as it allows attackers to access highly sensitive data, including SSH private keys and password hashes, on affected systems. Tracked as\u00a0CVE-2026-46333, the flaw has been nicknamed\u00a0\u201cssh-keysign-pwn\u201d\u00a0and impacts a wide range [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[129,63,406,131],"tags":[130],"class_list":["post-12919","post","type-post","status-publish","format-standard","hentry","category-cyber-security","category-cyber-security-news","category-linux","category-vulnerability","tag-cyber-security-news"],"_links":{"self":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/posts\/12919"}],"collection":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/comments?post=12919"}],"version-history":[{"count":0,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/posts\/12919\/revisions"}],"wp:attachment":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/media?parent=12919"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/categories?post=12919"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/tags?post=12919"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}