An AI Audit of FreeBSD#2294
Open
carlospolop wants to merge 1 commit into
Open
Conversation
Collaborator
Author
🔗 Additional ContextOriginal Blog Post: https://blog.calif.io/p/an-ai-audit-of-freebsd Content Categories: Based on the analysis, this content was categorized under "Binary Exploitation > Kernel Exploitation / FreeBSD Kernel Exploitation". Repository Maintenance:
Review Notes:
Bot Version: HackTricks News Bot v1.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 Automated Content Update
This PR was automatically generated by the HackTricks News Bot based on a technical blog post.
📝 Source Information
🎯 Content Summary
Calif's “An AI Audit of FreeBSD” describes an AI-assisted FreeBSD kernel security audit that produced 15 reported kernel bugs: 3 remote code execution vulnerabilities, 5 local privilege escalation vulnerabilities, 1
bhyveguest-to-host escape, and multiple memory disclosure and denial-of-service issues. The work was coordinated with the FreeBSD team, with a stated focus on high/critical issues, short reports, PoCs, and suggested patches when useful.<strong...
🔧 Technical Details
Kernel stack overflow from a
sizeofconfusion in copy-in credential code: if privileged kernel code copies user-controlled or semi-user-controlled data using a wrongsizeoftarget, a tiny source-level mistake can become a stack-frame overwrite. In the FreeBSD setcred case,kern_setcred_copyin_supp_groupsmishandles the supplementary group copy size, corruptinguser_setcred's stack frame. The general exploitation pattern is to identify the exact caller frame layout for the vulnerable kernel build, determine which locals/control data can be reached by the overflow, and shape the overflow into a credential or control-flow primitive. The post emphasizes that exploitability can be highly version-specific: the same source bug exists in FreeBSD 14.3, 14.4, and 15.0, but only 14.4 is exploitable with the released exploit.Out-of-bounds syscall dispatch table indexing through redirected syscalls: sysc...
🤖 Agent Actions
Done.
Updated:
src/binary-exploitation/freebsd-ptrace-rfi-vm_map-prot_exec-bypass-ps5.mdAdded concise FreeBSD-kernel-relevant content covering:
sizeof(pointer)vs element-size stack corruption patternssysentindexingselinfo/ poll waiter lifetime bugs leading toTAILQ_REMOVE-based kernel pointer writesAlso added the Calif blog and writeup references to the file’s final
## Referencessection.Validation:
git diffmdbook buildcould not be run here becausemdbookis not installed in the environment (/bin/bash: mdbook: command not found)This PR was automatically created by the HackTricks Feed Bot. Please review the changes carefully before merging.