A SpaceX Security Engineer Used AI to Find a 19-Year-Old Linux Bug That Gives Attackers Root


CIFSwitch, a Linux Root Bug Hidden in Plain Sight for 19 Years

Pierluigi Paganini
June 01, 2026

CIFSwitch is a 19-year-old Linux logic bug turning forged CIFS auth keys into root. Affects Mint, CentOS, Rocky, Kali, SLES.

CIFSwitch stands apart from typical privilege escalation vulnerabilities because of how it was discovered. Asim Manizada, a security engineer at SpaceX, didn’t find it by auditing source code the old-fashioned way. He built an AI-powered framework that constructs semantic graphs of kernel objects and their relationships, then had the models walk those graphs looking for mismatches between what a component creates and what a privileged consumer assumes. The result is a multi-step logic chain that reaches root on major distros, including Linux Mint, CentOS Stream 9, Rocky Linux 9, AlmaLinux 9, Kali Linux, and SLES 15.

The vulnerability has been in the Linux kernel since 2007. It lives at the intersection of the kernel’s CIFS client and the cifs-utils helper that handles Kerberos authentication for network file shares. When a CIFS mount needs Kerberos credentials, the kernel requests a key of type cifs.spnego and a root-privileged helper called cifs.upcall runs to fetch the authentication material. The problem is that nothing stops an unprivileged user from making the exact same key request with fabricated fields.

“CIFS/SMB is a Windows-style network filesystem protocol. On Linux, the CIFS kernel client handles the actual filesystem parts: mounting the share, talking SMB to the server, doing reads/writes, etc. But, understandably, for Kerberos-auth’d mounts, kernel CIFS doesn’t roll its own auth stack and instead relies on a userspace helper provided by cifs-utils.” continues the report.

“The interaction happens through Linux keyrings. The kernel requests a cifs.spnego-type key, and the normal keyutils/request-key config runs cifs.upcall as root to fetch or build the Kerberos/SPNEGO material. That brings us to – ahem – the key part.”

The fake description can include an attacker-controlled pid and the field upcall_target=app, which tells cifs.upcall to switch into the namespaces of the supplied process before doing anything else. That’s where the second half of the chain kicks in. Before cifs.upcall drops its root privileges, it calls getpwuid() to look up the target account. That lookup goes through NSS, the Name Service Switch, which loads shared libraries named in nsswitch.conf.

“An attacker in userspace can call request_key("cifs.spnego", totally_fake_description, ...) directly.” continues the report. “In the kernel, the pre-patch cifs.spnego key type does not reject the untrusted userspace-created descriptions, treating them as if they came from kernel CIFS.”

The PoC uses this to drop a sudoers.d config file giving the attacker full sudo access, after which root is one command away.

The full chain is: forge a cifs.spnego key request, point the pid field at a process in a namespace you control, let cifs.upcall switch into your namespace while still root, trigger the NSS lookup before the privilege drop, load your malicious NSS module. Five steps, all logic bugs, no memory corruption.

“The interaction happens through Linux keyrings.” continues the report. “The kernel requests a cifs.spnego-type key, and the normal keyutils/request-key config runs cifs.upcall as root to fetch or build the Kerberos/SPNEGO material. That brings us to — the key part.”

The fix is a single kernel-side check added to the cifs_spnego_key_type definition: a .vet_description hook that rejects any cifs.spnego request not originating from CIFS’s own spnego_cred. The patch landed in the upstream kernel more than a week before Manizada published his report, and is queued for stable. But distros ship at different paces, and many vulnerable configurations exist right now on systems waiting for packaged updates.

Whether your system is at risk depends on three things landing together: a vulnerable kernel, a vulnerable cifs-utils version (6.14 or higher, though some older versions backported into scope), and either unprivileged user namespaces enabled or SELinux/AppArmor policies that don’t block the attack. Ubuntu 26.04, Fedora 40-44, CentOS Stream 10, and Rocky Linux 10 block exploitation in their default configurations. Everything else on the confirmed list doesn’t. If cifs-utils is installed on Ubuntu 18.04 through 24.04, Debian 11 through 13, openSUSE Leap 15.6, or Oracle Linux 8 or 9, the attack works. A public PoC is on GitHub.

If you don’t use CIFS or Kerberos authentication for network shares — and most desktop systems don’t — removing cifs-utils or blacklisting the CIFS kernel module closes the issue entirely without waiting for a patch. If you do use it, the kernel update is the right fix. Disabling unprivileged user namespaces also blocks the attack but affects other things, so it’s worth testing before deploying.

The other notable detail here is the method. Manizada didn’t find CIFSwitch by reading code. He used a scaffolded AI framework, complete with graph traversal tools, to build a map of privileged kernel consumers, the objects they trust, and where those objects can be tampered with. The agents found the missing .vet_description hook by reasoning through the graph and noticing that cifs.spnego key descriptions were trusted by a root helper but could be authored by anyone. It’s the same class of vulnerability a skilled human auditor would find. It just took an AI a fraction of the time, and came with a working exploit.

Recently, other Linux privilege-elevation vulnerabilities made the headlines, including Copy Fail, Dirty Frag, DirtyDecrypt, Fragnesia, and PinTheft.

Follow me on Twitter: @securityaffairs and Facebook and Mastodon

Pierluigi Paganini

(SecurityAffairs – hacking, CIFSwitch)







Source link

Leave a Reply

Subscribe to Our Newsletter

Get our latest articles delivered straight to your inbox. No spam, we promise.

Recent Reviews


When it comes to content, there’s little I love more than a good, gritty crime drama. From their dark, cynical, often realistic portrayals of criminal underworlds, violence, and justice systems to their heavily flawed, obsessed, anti-hero protagonists and intense, gritty tones, it all sucks us in, and it’s why we can’t look away. These types of criminal shows have carved out a powerful space in television by refusing to glamorize the worlds they depict and being willing to confront uncomfortable truths.

This weekend on Amazon Prime Video in the U.S., we’re exploring three immensely popular, critically acclaimed criminal shows that will hook you from the get-go with their honesty, and my top pick is a must-see that reinvented the police procedural genre.

3

City on a Hill

A Wire-like look at corruption, race, and justice

Based on a story by Ben Affleck and author Charlie MacLean, the underrated crime drama City on a Hill revisits a charged moment in Massachusetts history known as The Boston Miracle. For 18 months in the mid-90s, gang-related violence dropped 63% as the result of a community-wide initiative developed in collaboration with the Boston Police Department, street workers, juvenile corrections officers, churches, and neighborhood programs. Kevin Bacon (Footloose), Aldis Hodge (Cross), and Jonathan Tucker (Kingdom) headline the cast.

Set in early 1990s Boston, corruption, violent criminals, and racism are normal parts of life, and to make matters worse, they’re backed by local law enforcement agencies. The series focuses on an unlikely alliance between hardened, corrupt, charismatic FBI agent Jackie Rohr (Bacon) and idealistic Assistant District Attorney Decourcy Ward (Hodge) as they work together to navigate the city and take down a family of armored car thieves, aiming to overhaul the broken criminal justice system.



















Quiz
8 Questions · Test Your Knowledge

Prime Video movies
Trivia challenge

From thrillers to tearjerkers — see how well you know these Amazon Prime Video films.

DramaThrillerTrue StoryComedySports

In Crime 101, what profession does the main character use as cover while pulling off elaborate heists?

That’s right! The protagonist poses as a real estate agent, using the job’s access and mobility as a convenient front for criminal activity. The film plays with how ordinary professions can mask extraordinary deception.

Not quite — the correct answer is real estate agent. The film uses this cover cleverly, showing how a respectable-seeming profession can provide the perfect camouflage for a career criminal operating in plain sight.

In Saltburn, which prestigious English university does protagonist Oliver Quick attend when he befriends Felix Catton?

Correct! Oliver and Felix meet at Oxford, where the stark class divide between scholarship student Oliver and the aristocratic Felix is immediately established. That university setting is crucial to the film’s themes of privilege and obsession.

Not quite — it’s Oxford where Oliver and Felix first cross paths. Director Emerald Fennell deliberately chose Oxford’s world of old money and social stratification to set up the film’s exploration of class envy and manipulation.

In The Tender Bar, based on J.R. Moehringer’s memoir, who plays Uncle Charlie, the bartender who becomes a father figure to young J.R.?

Spot on! Ben Affleck plays the warm and charismatic Uncle Charlie, earning considerable praise for the role. Affleck’s performance was seen as one of the film’s greatest strengths, bringing real depth to a man who shapes a fatherless boy’s entire worldview.

The correct answer is Ben Affleck. His portrayal of Uncle Charlie was widely praised as a career highlight, capturing the rough charm of a bartender who becomes the most important male role model in J.R.’s life.

In the 2024 Prime Video remake of Road House, who plays ex-UFC fighter Elwood Dalton, the new bouncer at a Florida Keys roadhouse?

That’s right! Jake Gyllenhaal steps into the role made famous by Patrick Swayze, playing a disgraced MMA fighter hired to clean up a rowdy bar in the Florida Keys. Gyllenhaal underwent intense physical training to prepare for the action-heavy role.

The correct answer is Jake Gyllenhaal. He took on the iconic role previously played by Patrick Swayze in the 1989 original, with the remake shifting the setting from Missouri to the Florida Keys and updating the protagonist’s fighting background to MMA.

Thirteen Lives depicts the dramatic 2018 rescue of a youth soccer team trapped in a cave in which country?

Correct! The film recreates the harrowing rescue of the Wild Boars youth soccer team from the Tham Luang cave in Thailand. The real-life operation captivated the world and involved expert cave divers from across the globe.

The answer is Thailand. The real rescue took place in the Tham Luang Nang Non cave in Chiang Rai province, where 12 boys and their coach were trapped for 18 days before a multinational team of divers managed to bring them all out safely.

In Manchester by the Sea, what unexpected event forces Lee Chandler to return to his hometown and become guardian of his teenage nephew?

That’s right! Lee’s brother Joe dies suddenly from congestive heart failure, pulling Lee back to a town filled with painful memories. Casey Affleck won the Academy Award for Best Actor for his portrayal of the grief-stricken, emotionally closed-off Lee.

Not quite — Lee returns because his brother Joe dies of congestive heart failure. The film, written and directed by Kenneth Lonergan, won two Academy Awards including Best Original Screenplay, and is celebrated for its unflinching portrayal of grief and guilt.

In American Fiction, what pen name does frustrated author Thelonious ‘Monk’ Ellison use when he writes a satirical novel pandering to racial stereotypes?

Correct! Monk writes his outrageous satirical manuscript under the pseudonym Stagg R. Leigh, a name that itself plays on stereotypes. The film, based on Percival Everett’s novel Erasure, won Cord Jefferson the Academy Award for Best Adapted Screenplay.

The pen name Monk uses is Stagg R. Leigh. The choice of pseudonym is itself part of the satire — a name loaded with cultural baggage. Jeffrey Wright received an Academy Award nomination for Best Actor for his nuanced portrayal of Monk.

In Air, the film about Nike signing Michael Jordan, which actress plays Jordan’s mother Deloris, who plays a pivotal role in negotiating his landmark deal?

That’s right! Viola Davis plays Deloris Jordan with commanding presence, portraying her as the savvy negotiator who helped secure the revolutionary contract that gave Michael unprecedented royalties. The real Deloris Jordan is widely credited with shaping the deal that changed sports marketing forever.

The correct answer is Viola Davis. She received widespread praise for capturing the intelligence and determination of Deloris Jordan, whose behind-the-scenes negotiations were instrumental in creating the Air Jordan brand that would go on to generate billions of dollars.

Challenge Complete

Your Score

/ 8

Thanks for playing!

Expect a thick atmosphere of 90s Boston authenticity, compelling power dynamics, character-driven narratives, and exceptional acting, particularly from Bacon, who gives a career-best performance. The show offers a serious, slow-burn exploration of one city’s criminal justice system while blending police corruption with family drama and social issues. Though fictionalized, it’s a fascinating look at Boston’s transition from a corrupt era to a new system and is executive produced by Affleck and Matt Damon.

2

River

A traditional “whodunit” investigation

Boasting a perfect critics’ score on Rotten Tomatoes, River is a six-part British police procedural and psychological crime drama about a haunted detective investigating his partner’s murder while also struggling with his mental health. Stellan Skarsgård (Good Will Hunting) and Nicola Walker (Unforgotten) star.

Detective Inspector John River (Skarsgård) is brilliant at what he does, but his fractured mind keeps him trapped between the living and the dead, haunted by “manifests,” or visions of murder victims, including his recently deceased partner, Stevie. Under enormous pressure from the media and psychiatric evaluation for his hallucinations, River works hard to navigate his guilt and, in the process, discovers the shocking truth about Stevie’s death.

Unlike typical crime shows, River focuses heavily on its protagonist’s mental states in the wake of his criminal experiences. The slow-burn, dramatic crime thriller is characterized by intense psychological scenes, a traditional “whodunit” investigation, and a masterful performance from Skarsgård. Expect a deeply human study of loss with smart writing, a genuinely creepy atmosphere, and a unique, emotional take on the police procedural drama.

1

The Shield

One of the best cop shows ever made

One of this century’s best crime dramas, The Shield is a multi-Golden Globe and Primetime Emmy Award winner. Michael Chiklis (The Commish), Walton Goggins (The White Lotus), Kenny Johnson (Ray), and Michael Jace (The Replacements) star alongside an enormous cast that includes Forest Whitaker, Katey Sagal, Kurt Sutter, CCH Pounder, Glenn Close, Benito Martinez, and more.

The hit FX show follows the corrupt activities of rogue cop Vic Mackey (Chiklis) in an experimental criminal division task force of the Los Angeles Police Department. He’ll go to any lengths to take down the criminals he and his team are chasing, including breaking the law and working with other criminals, and eventually he ropes his team into doing the same. Everything is set in a district rife with gang-related violence, drug trafficking, and prostitution.

Highly regarded for reinventing the police procedural and setting the standard for modern anti-hero dramas, the show paved the way for “prestige” television on basic cable with its raw, unflinching tone full of twists and thrills that explores the fine line between right and wrong. Over the course of 88 episodes, you’ll experience fast-paced action, moral ambiguity, high-stakes tension, and more riveting, gritty crime drama in one continuously solid storyline than you can stand. When viewing turns to obsession, don’t say I didn’t warn you. This one is a true gem.


Each of these hit criminal shows stands out for its realism and complexity, offering a much darker, thought-provoking take on crime storytelling that burrows into our brains and leaves us craving more. The platform has plenty of excellent crime dramas to choose from, so once you finish these three, stick around and see what else is there to transport you to the criminal underworld. Before you leave, though, be sure to check out everything coming to Prime Video in May 2026.

The Prime Video logo.

Subscription with ads

Yes, via Prime membership or $9/month

Simultaneous streams

3




Source link