CVE-2026-112505

A filename that outgrew its SMB response

A valid filename fit before normalization and exceeded the SMB response after it. Moving the same name three records earlier separated a clean response from a root smbd crash.

Share

Share this article

X LinkedIn Email

The original filename fits exactly at the 16,384-byte response boundary. Unicode normalization expands the calculated record end to 16,628 bytes.
The original filename fits exactly at the 16,384-byte response boundary. Unicode normalization expands the calculated record end to 16,628 bytes.
On this page

A directory listing is not supposed to be an attack on the server. In this case, the dangerous work happened while macOS was sending the listing back.

We found that root smbd could fit a filename into a 16 KB SMB2 response, then expand that same name during Unicode normalization and write beyond the response allocation. The remote client did not need to submit malformed protocol data. It created a valid filename in a writable share and asked the server to list the directory.

The decisive test was not simply a crash. With the same filename placed three ordinary directory records earlier, the server returned the normalized name and kept the same process alive. Move that record to the end of the response, and ProbGuard caught a write at the first byte beyond the live allocation.

Apple assigned this report CVE-2026-112505 and credited Andrey Chernykh (BypassLabs.AI) among the researchers listed in its security advisory.

Key findings

  • An authenticated SMB client with a non-admin File Sharing account and write access to one share could create the trigger entries and issue a normal SMB2 QUERY_DIRECTORY request over TCP/445.
  • The filename contained U+0344, a valid Unicode character that normalizes into two UTF-16 code units. smbd checked the name's original byte length, then treated the remaining bytes as though they were a capacity in UTF-16 code units.
  • The original record ended exactly at byte 16,384 of the response. Its normalized form would extend to byte 16,628, a 244-byte overrun if uninterrupted. ProbGuard caught the first out-of-bounds write.
  • A second test put chosen U+0055 code units at the overflow boundary, establishing that the out-of-bounds content was not limited to the fixed U+0344 decomposition pattern.
  • The proof demonstrates authenticated remote heap corruption and a root smbd crash. It does not demonstrate remote code execution or an unauthenticated trigger.

At a glance

Detail Finding
Target Apple's production /usr/sbin/smbd, running as root
CVE CVE-2026-112505
Tested build macOS 27.0 beta 26A5378n on Apple silicon, SIP enabled
Entry point Authenticated SMB2 QUERY_DIRECTORY on a writable share
Root cause Remaining response bytes passed as external UTF-16 buffer capacity in code units
Demonstrated impact Heap out-of-bounds write at a 16,384-byte response boundary; smbd termination
Content control NFC-compatible 16-bit code units within filename restrictions
Required access Valid non-admin File Sharing account allowed to create and enumerate entries
Public CVSS 3.1 CISA ADP: 7.8 High
Fixed releases macOS Golden Gate 27.2, Tahoe 26.7.2, Sequoia 15.8.2

A valid name, a larger answer

The first part of the bug is Unicode doing exactly what Unicode is supposed to do. U+0344 decomposes under NFC into U+0308 followed by U+0301. A filename containing that character can therefore occupy more UTF-16 space after normalization than it occupied before.

The second part is a unit mistake. While filling a FILE_BOTH_DIRECTORY_INFORMATION record, smb::insert_utf16_string first compared available response space against the original UTF-16 byte count. It then handed CoreFoundation the response buffer as external UniChar storage, but described its capacity using the remaining byte count. Because a UniChar is two bytes, that made the buffer appear larger than the memory actually available.

In simplified terms, the vulnerable order was:

text
Check:      Does the original filename fit in the remaining bytes?
Normalize: Write the expanded filename into the response buffer.
Check:      Did normalization make the name larger?

That last check arrived after the write. A size check cannot protect memory that has already been overwritten.

One filename, two layouts

The proof created every trigger entry through authenticated SMB, not through local file APIs. A local wrapper calibrated the share's enumeration order so the target record landed at a known point in the response. It used the same target filename in both arms and kept the same smbd process for the control.

Matched control Overflow arm
Target record offset 15,712 16,024
Original UTF-16 name 266 bytes 266 bytes
Normalized UTF-16 name 510 bytes 510 bytes
Result Name returned; same smbd PID Root smbd terminated

The difference was three ordinary 104-byte records before the target. At offset 16,024, the record's 94-byte prefix plus its original 266-byte name ended at 16,384, exactly the response allocation's end. The normalized 510-byte name would end at 16,628. The extra 244 bytes had nowhere inside the allocation to go.

ProbGuard ran Apple's unchanged production smbd with the response allocation next to a guard page. The diagnostic identified a live 16,384-byte allocation and a high-confidence out-of-bounds fault at offset 16,384. The stack ran through CFStringNormalize, smb::insert_utf16_string, and smb2_dispatch_query_directory. ProbGuard stopped execution at the first invalid byte; the 244-byte figure is the calculated extent of the expanded write, not a claim that all 244 bytes were observed past the guard page.

Was the overflow content controllable?

The primary filename used U+0344 to make the normalized name grow. That alone would have produced a restricted expansion pattern beyond the boundary. We tested whether the attacker could influence which code units reached it.

In a second matched test, U+0344 groups supplied the expansion while a run of NFC-stable U+0055 characters followed them. The same filename was returned intact in the safe layout. At the overflow boundary, the calculated first out-of-bounds code unit was the chosen 0x0055, and the guarded run faulted at that boundary. The intended out-of-bounds suffix was 60 bytes of 55 00 pairs, not just the fixed Unicode decomposition.

That is meaningful control, but not arbitrary bytes. Filename rules exclude NUL, /, surrogate code units, and other values that cannot survive this normalization path. The demonstrated primitive is a restricted, 16-bit-granular attacker-chosen write in a root network daemon. We did not demonstrate a useful corrupted neighbor, data disclosure, or control-flow hijack.

What this says about parser boundaries

The interesting trust boundary was not SMB authentication. Authentication worked: the client used a valid, limited File Sharing account. The failure occurred later, when a server response builder changed the representation of client-created data without updating its memory bounds.

The representation change is what made this bug consequential. The original filename fit; its normalized form did not. A capacity measured in bytes was handed to an API that expected UTF-16 units, and the matched layout made that single mistake visible at the allocation boundary.

Advisory scope

Apple lists this CVE under smbx, but its short impact description uses Screen Sharing wording. This report documents the authenticated SMB2 QUERY_DIRECTORY mechanism in our submission; it does not establish a Screen Sharing trigger. Apple credits an anonymous researcher, Narendra Singh and Andrey Chernykh (BypassLabs.AI).

Remediation

Install a fixed release for your macOS branch, or a later security update:

Use Software Update to install the update. The tested vulnerable builds are documented above; the fixed versions come from Apple’s CVE record.

Disclosure timeline

  1. Matched directory-listing test

    The recorded run compared the safe layout with a guarded overflow on build 26A5378n.

  2. Chosen code units verified

    A second guarded run confirmed that the overflow boundary could contain chosen U+0055 code units.

  3. Apple ships the fix

    macOS Golden Gate 27.2, macOS Tahoe 26.7.2, macOS Sequoia 15.8.2 are released and the CVE record is published.

Sources & references

  1. Apple security content: macOS Golden Gate 27.2support.apple.com
  2. Apple security content: macOS Tahoe 26.7.2support.apple.com
  3. Apple security content: macOS Sequoia 15.8.2support.apple.com
  4. CVE-2026-112505 — official recordcve.org
  5. CVE record data — dates and CISA ADP severity assessmentcveawg.mitre.org
  6. Apple Support — update macOSsupport.apple.com
All researchBack to top