Sunday, September 13, 2026

Linux Kernel Zero-Day SMB Vulnerability Discovered via ChatGPT

Security researcher has discovered a zero-day vulnerability (CVE-2025-37899) in the Linux kernel’s SMB server implementation using OpenAI’s o3 language model.

The vulnerability, a use-after-free bug in the SMB ‘logoff’ command handler, could potentially allow remote attackers to execute arbitrary code with kernel privileges.

This discovery marks a significant advancement in AI-assisted vulnerability research, demonstrating how large language models can effectively identify complex memory safety issues that require understanding of concurrent execution paths.

The vulnerability exists in ksmbd, “a linux kernel server which implements SMB3 protocol in kernel space for sharing files over network”.

Specifically, the flaw occurs in the session logoff handler where sess->user is freed without proper synchronization between concurrent connections that might be using the same session object.

The vulnerability exploits a race condition where one worker thread processes an SMB2 LOGOFF command and frees the user structure, while another thread on a different connection continues using that now-freed memory.

This occurs because when a second transport binds to an existing session (in SMB 3.0 or later), a worker can receive a normal request that stores a pointer to the existing session but doesn’t take any reference on sess->user.

What makes this vulnerability particularly dangerous is that the logoff handler only waits for running requests on its own connection (ksmbd_conn_wait_idle(conn)) but doesn’t wait for other connections that might be using the same session.

This allows for classic use-after-free exploitation that could lead to kernel memory corruption and potentially arbitrary code execution with kernel privileges.

AI-Powered Vulnerability Detection

The researcher tested OpenAI’s o3 model on approximately 12,000 lines of code (~100k input tokens) and ran the experiment 100 times.

While the model found a previously known vulnerability (CVE-2025-37778) in only one run, it successfully identified the new zero-day vulnerability in other outputs.

What’s remarkable is the quality of the AI-generated vulnerability report, which not only identified the issue but provided a comprehensive explanation of the exploitation path.

The researcher noted that o3’s output “feels like a human-written bug report, condensed to just present the findings”.

The AI even identified that a previous fix approach (simply setting sess->user = NULL after freeing) would be insufficient due to session binding possibilities.

New Era for Security Research Tools

This discovery represents a significant milestone in the application of large language models to security research.

The researcher concluded that LLMs have now reached a capability level where they are “far more similar to a human code auditor than they are to symbolic execution, abstract interpretation or fuzzing”.

While the false positive rate remains a challenge (with a signal-to-noise ratio of ~1:50 in this experiment), the researcher emphasized that o3’s performance marks a turning point where AI assistance in vulnerability research becomes genuinely worthwhile.

According to the Report, Security professionals may now need to integrate these tools into their workflows, as the AI demonstrated the ability to not only find bugs but also to propose more comprehensive fixes than human researchers in some cases.

This breakthrough suggests that collaborative human-AI approaches could significantly enhance vulnerability detection capabilities, potentially securing critical infrastructure like the Linux kernel more effectively against sophisticated attacks.

Find this News Interesting! Follow us on Google NewsLinkedIn, & X to Get Instant Updates!

Mayura Kathir
Mayura Kathirhttps://gbhackers.com/
Mayura Kathir is a cybersecurity reporter at GBHackers News, covering daily incidents including data breaches, malware attacks, cybercrime, vulnerabilities, zero-day exploits, and more.

Hot this week

How To Access Dark Web Anonymously and know its Secretive and Mysterious Activities

What is Deep Web The deep web, invisible web, or...

How to Build and Run a Security Operations Center (SOC Guide) – 2023

Today’s Cyber security operations center (CSOC) should have everything...

Russian Hackers Bypass EDR to Deliver a Weaponized TeamViewer Component

TeamViewer's popularity and remote access capabilities make it an...

Web Server Penetration Testing Checklist – 2026

Web server pentesting is performed under three significant categories: identity,...

ATM Penetration Testing – Advanced Testing Methods to Find The Vulnerabilities

ATM Penetration testing, Hackers have found different approaches to...

Threat Actors Use Claude AI Agents to Automate Cyberattacks and Steal Sensitive Data

Threat actors are increasingly using Claude-based AI workflows to...

China-Linked Hackers Chain Chrome Zero-Day With Windows Kernel Flaw in Attacks

China-linked threat actors UTA0560 and JungleBamboo chained a Google...

New Phishing Campaign Abuses Windows Mshta.exe to Steal Credentials and Secrets

A newly identified phishing campaign is abusing the legitimate...

CISA Warns of Critical GitLab Vulnerability Exploited in Attacks

The U.S. Cybersecurity and Infrastructure Security Agency (CISA) has...

Researchers Uncover 10,000+ Malware Loaders Behind YouTube and SEO Poisoning Campaign

A long-running pay-per-install (PPI) operation that used YouTube gaming...

VLC Media Player Flaws Let Attackers Corrupt Memory and Leak Sensitive Data

Two security vulnerabilities in VLC media player versions 3.0.0...

CISA Adds Exploited MikroTik RouterOS Flaws to Security Alert

The U.S. Cybersecurity and Infrastructure Security Agency (CISA) has...

Related Articles

Recent News