Skip to content
KitploitKITPLOIT
工具漏洞利用博客
提交
工具漏洞利用博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
CVE-2026-65349 — Proof-of-concept for an out-of-bounds write in XNU's vfs_attr_pack_internal (getattrlist) on iOS 26.6, demonstrating kernel heap corruption and exploitation notes for PAC pointer forging. | Kitploit
工具/GitHubGitHub/bytev0rtex/cve-2026-65349
iOS SecurityVulnerability AnalysisExploitationReverse EngineeringBinary Exploitation
GitHubbytev0rtex/cve-2026-65349

CVE-2026-65349

Proof-of-concept for an out-of-bounds write in XNU's vfs_attr_pack_internal (getattrlist) on iOS 26.6, demonstrating kernel heap corruption and exploitation notes for PAC pointer forging.

查看仓库
211619天前尚未审核

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享
内容在请求的语言中不可用。显示英文版本。

CVE-2026-65349 — getattrlist OOB Write in vfs_attr_pack_internal

Component: XNU VFS — vfs_attr_pack_internal (getattrlist syscall)
Affected: iOS / iPadOS 26.6 (23G71) and earlier
Fixed in: iOS / iPadOS 26.6.1 (23G83)
Type: Out-of-Bounds write to caller buffer
Impact: Kernel heap corruption; from kernel context (after kernel r/w), enables writing a PAC-signed pointer to an attacker-controlled buffer


Credits

Discovered by an anonymous researcher
(per Apple Security Advisory — iOS 26.6.1)


Root Cause

vfs_attr_pack_internal iterates over the requested attribute bitmap and writes each attribute into the caller's buffer sequentially. It does not check whether the running output offset has exceeded bufsize before writing attribute slot 51 (SETXATTR_SLOT).

For a file with a 16-character name, the full valid attribute output is 0x1a4 (420) bytes. Slot 51 starts at offset 0x198 (408 bytes). When the caller supplies a buffer smaller than 0x198 + 8, the kernel writes 8 bytes past the end of the buffer:

root@kitploit:~
; vfs_attr_pack_internal (affected path, 26.6 / 23G71)
; slot 51 write — no bounds check before store
str  x_attr_data, [buf + 0x198]   ; OOB if bufsize < 0x198 + 8

Attribute Bitmap

The valid attribute masks verified by on-device probe (getattrlist on a 16-character filename, iOS 26.6):

FieldMask
commonattr0xffe7ffff (bits 19, 20 are invalid on this kernel)
fileattr0x0000363f
forkattr0xffffe003

With these masks on a 16-char filename, total output = 0x1a4 bytes. OOB occurs at slot 51 (buf+0x198) whenever bufsize < 0x1a0.


iOS 26 Exploitation Notes

On iOS 26, KHEAP_TEMP isolation prevents the OOB write from directly corrupting adjacent heap allocations in a useful way from userspace. The bug is classified as kernel-heap only in this research:

  • From userspace: OOB write hits caller's own user-stack/heap — observable but not exploitable for privilege escalation without an additional primitive.
  • From kernel context (after a kernel write primitive from CVE-2026-64788): write a PAC-signed pointer into a kernel buffer via the OOB offset, then trigger vfs_attr_pack_internal from a controlled call site.

In the iOS 26.6 jailbreak chain, this bug is used in the final stage to write a PACIA-forged pointer into a kernel allocation adjacent to the caller buffer.


PoC Behaviour

poc_getattrlist_oob.c demonstrates the OOB boundary with three calls:

The PoC creates a 16-character filename (/var/root/aaaaaaaaaaaaaaaa) as the test target, runs all three getattrlist() calls, and prints the return codes. A kernel panic log (if triggered) will show a fault at buf+0x198.


Requirements

  • iOS 26.6 (23G71) or earlier
  • /var/root/ write access (for creating the 16-char test file; path can be adjusted to any writable location)
  • No entitlements required

Build

root@kitploit:~
# Standalone C binary — no frameworks needed
clang -arch arm64 -o poc poc/poc_getattrlist_oob.c

# For on-device:
clang -arch arm64 -isysroot $(xcrun --sdk iphoneos --show-sdk-path) \
      -o poc poc/poc_getattrlist_oob.c
codesign -s "Apple Development" poc

Timeline

DateEvent
2026-08-17iOS 26.6.1 released with fix
2026-08-17Apple credits published in security advisory

References

  • Apple Security Advisory — iOS 26.6.1
下载工具
CallBuffer sizeExpected result
164 bytesKernel writes past buffer → OOB at buf+0x198 (344 B past end); userspace stack corruption
20x198 bytesOOB write starts exactly at the end of buffer
30x1a4 bytesExact valid size → clean success