add CVE-2025-39946_lts_cos#28
Open
d4em0n wants to merge 5 commits into
Open
Conversation
01bce6d to
136b389
Compare
a656948 to
25f312b
Compare
- Replace magic numbers with named constants (#defines with comments) - Break monolithic main() into descriptive functions - Remove all unused code (DumpHex, PAUSE, commented-out blocks) - Add @sleep(desc=...) annotations on all sleep() calls - Add ROP gadget instruction comments and KERNEL_DEFAULT_BASE - Add struct definitions for pipe_buffer layout offsets - Move globals to local/function scope where appropriate - Add MODULE_SYSFS_OPS JOP chain explanation in exploit.md and code comments - Add KASLR bypass to COS exploit (was missing) - Fix exploit.md grammar and restructure into numbered steps
fb7c22e to
f2712dc
Compare
The 0x180 value is arbitrary, not specifically chosen to match the kmalloc cache of skb_shinfo->frags. Clarify that AIO pages are simply freed and later reclaimed by kmalloc allocations.
- Remove unused typedefs (keep only u64) and ARRAY_LEN macro - Rename pipe_buffer offset defines to follow style guide (PIPE_BUFFER_OFFS_OPS, PIPE_BUFFER_OFFS_FLAGS) - Fix PIPE_BUF_PRIVATE_OFFSET: value 24 (0x18) is flags, not private (0x20) - Make ktext local in main() and pass to build_and_send_payload() - Move listen_vsockfd/listen_vsock_addr to static locals in vsock_pair() - Rename puaf -> aio_ctx - Add PAYLOAD_SIZE define - Remove commented-out code (// #define KASLR_BYPASS_INTEL) - COS: remove unused unix_fd socketpair, fix outdated header comment - Add clarifying comment on two-pipe fcntl expansion
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.
No description provided.