Commit Graph

581 Commits

Author SHA1 Message Date
msh1307 2271225f5c Add kernelCTF CVE-2023-5717_mitigation (#168)
* Add CVE-2023-5717_mitigation

* update

* Improved speed

* Improved speed

* Improve speed

* Adjust MIN, MAX

* Remove race_id & Fix kernel mem layout for exploit

* Adjust MIN, MAX

* Improved exploit speed

* Improved speed & relibility

* Revert read() loops

* Remove some stub codes

* Finding r

* Finding r

* Finding r

* Revert Timing

* Adjust timing & Overwriting ptes across the entire page

* FIx iteration

* making more reliable memory layout?

* Improved forming memory layout reliability

* Fix useless codes

* Testing

* Testing

* Fixed Typo

* improved memory layout reliability

* memory reliability

* Fix counters being migrated to next event by scheduler

* Fix missing timerfd

* Fix pte limit

* test

* Increase iteration & ensure tlb is flushed

* Flushing tlb effectively

* Test

* Using execve instead of system

* Final version of exploit

* Final

* same

* Last

* Fix code styles

* Fix code styles & docs

* Fix code styles & docs

* address review feedback
2026-02-23 15:44:28 +01:00
artmetla d1e771d08f Update kernelctf-submission-verification.yaml 2026-02-23 10:50:12 +01:00
Kees Cook 7e1a60c5cd Update rules for credit in 'Reported-By' tag (#334)
* Update rules for credit in 'Reported-By' tag

Clarified the requirement for credit in the 'Reported-By' tag for bug fixes, as requested by upstream Linux kernel developers who do not want to see redundant tags.

* kernelCTF: rules: fix typo

---------

Co-authored-by: Tamás Koczka <koczkatamas@gmail.com>
2026-02-20 14:35:07 +01:00
rcorrea35 bc107b0437 Update README.md
Addressing typo.
2026-02-17 12:23:23 -05:00
Stephen Roettger ce2f39109d [v8ctf] remove M144 since it was claimed 2026-02-17 12:38:35 +01:00
v8CTF github action 5dafa8f88b [v8ctf] Update v8CTF challenges 2026-02-11 00:07:32 +00:00
rcorrea35 39215056e8 Update README.md 2026-02-10 13:40:43 -05:00
rcorrea35 bf5b0fab4f Update README.md 2026-02-10 13:28:56 -05:00
rcorrea35 10369990af Delete pocs/cpus/tdxploits/temp.md 2026-02-10 13:24:35 -05:00
rcorrea35 47c71cd914 Delete pocs/cpus/tdxplore/temp.md 2026-02-10 13:24:17 -05:00
rcorrea35 029022759d README.md Upload 2026-02-10 13:23:50 -05:00
rcorrea35 1ca72135dc Add files via upload 2026-02-10 13:23:04 -05:00
rcorrea35 1da808e769 Create boxy.py 2026-02-10 13:21:56 -05:00
rcorrea35 8c8c1d98ca lib 2026-02-10 13:21:06 -05:00
rcorrea35 c312801a05 Create build.sh 2026-02-10 13:20:41 -05:00
rcorrea35 7e361f1da9 kmod 2026-02-10 13:20:00 -05:00
rcorrea35 62325a2881 Create config.h 2026-02-10 13:19:31 -05:00
rcorrea35 6727547535 tdxploits POC 2026-02-10 13:18:28 -05:00
rcorrea35 5ea85929e5 Add tdxploits POC 2026-02-10 13:16:37 -05:00
rcorrea35 ef1dc396fa Add tdxplore POC 2026-02-10 13:15:56 -05:00
rcorrea35 356f413d27 Delete pocs/cpus/tdxploits directory 2026-02-10 13:14:16 -05:00
rcorrea35 f4f3c054d1 Delete pocs/cpus/tdxplore directory 2026-02-10 13:14:03 -05:00
rcorrea35 f67e0fbe18 Create README.md 2026-02-10 13:10:39 -05:00
rcorrea35 b895f9d52e Delete pocs/cpus/tdexplore directory 2026-02-10 13:10:18 -05:00
rcorrea35 d2f9510f86 Create README.md 2026-02-10 13:09:51 -05:00
rcorrea35 97dc788d5e Create READ.me 2026-02-10 13:09:22 -05:00
Gerrard e9b6a52ba9 Added kernelCTF CVE-2025-38083_cos_mitigation (#227) 2026-02-10 12:24:26 +01:00
0xdevil 090538ae42 Add kernelCTF CVE-2025-38001_lts_cos_mitigation (#223)
* CVE-2025-38001_lts_cos_mitigation

* Fix GDB indentation
2026-02-06 17:10:05 +01:00
artmetla 9e37f29c68 Update rules.md (#329) 2026-02-06 15:55:32 +01:00
0xdevil 8eb2453001 Add kernelCTF CVE-2025-37752_cos (#222)
* Add kernelCTF CVE-2025-37752_cos

* Update exploit.c

* Update exploit.c
2026-02-06 14:55:00 +01:00
Hoàng Hải Long 44f6ce0223 Add kernelCTF CVE-2023-52927_cos (#220)
* init CVE-2023-52927

* fix file structure
2026-02-04 17:24:22 +01:00
Eduardo' Vela" Nava (sirdarckcat) 818793518e Create copilot-instructions.md for kernelctf
Add instructions for applying Copilot to kernelctf.
2026-01-26 13:30:04 +01:00
lambdasprocket 7aafb56f9d kernelCTF: add CVE-2024-26585_lts_cos (#293)
* kernelCTF: add CVE-2024-26585_lts_cos

* CVE-2024-26585_lts_cos: adjust timings

* CVE-2024-26585_lts_cos: limit attempts for COS

* CVE-2024-26585_lts_cos: adjust timings for COS
2026-01-22 17:51:22 +01:00
v8CTF github action 5e192cbe3c [v8ctf] Update v8CTF challenges 2026-01-21 00:01:37 +00:00
Tamas Koczka 7f68f7f1b8 kernelCTF: add explicit note about the 10% stability requirement 2026-01-07 12:45:19 +00:00
Tamas Koczka d6396d2cda kernelCTF: fix mitigation-6.1-v2 handling issue 2026-01-07 12:17:18 +00:00
Matteo Rizzo d57309a820 kernelCTF: server: update to latest version 2025-12-18 15:41:47 +00:00
artmetla 7297a9e637 Submission Verification logic for Android submissions (#289)
1) Disabled AppArmor block for unpriviledged user namespaces. This hapend in ubuntu-latest: https://discourse.ubuntu.com/t/understanding-apparmor-user-namespace-restriction/58007. Added this step to "get_android_dependencies.sh".
2) Using "get_android_dependencies.sh" script to handle dependencies for all execution options: server.py, exploit build, and exploit_reproduction.
3) Optimised exploit reproduction run time, by downloading releases and installing dependencies in parallel. 
4) Conducted clean up to free up a bit of extra space for Cuttlefish runs (cleaning compilation leftovers and APT caches).
5) Using "cuttlefish.sh" to run VM in all execution options: server.py and GHA reproducer. Modified "cuttlefish.sh" to add "--test-mode" which allows easy testing by setting "falg" file permissions equivalent to exploit executable. It's disabled in prod. Improved Android16 detection logic (to enable necessary execution flags for "launch_cvd"), as apparently "launch_cvd --help" could fail sometimes. Improved cleaning logic (important as launch_cvd is super nasty and lefts a lot of tmps and random leftovers which could negatively impact next run of the VM)
6) Apparently in ubuntu-latest "sg -c" requires password. So implemented this logic canonical/data-platform-workflows@349e0c8. This is important as Cuttlefish couldn't run without user being added in groups. By default they suggest reboot to apply those changes, but it's impossible in GHA.
7) "Check PR content" logic is already updated in prod
8) Ensured that in exploit build environment NDK is added to the PATH, so simple Makefiles like:
```
exploit: exploit.c
clang --target=x86_64-linux-android35 -static $^ -o exploit
```
The whole thing was tested with dummy exploit in my fork.
9) Implemented proper timeout check (30 mins) in "cuttlefish.sh"
10) Introduced sparse-checkout for the GHA.
2025-12-04 15:21:19 +01:00
Stephen Roettger d69153396e [v8ctf] Remove old versions 2025-12-03 10:58:49 +01:00
v8CTF github action a19be12183 [v8ctf] Update v8CTF challenges 2025-12-03 00:01:34 +00:00
artmetla 8947e3d1e4 Update check-submission.py to handle Android folders 2025-11-27 17:15:29 +01:00
artmetla 63b9e94c82 Update metadata.schema.v3.json 2025-11-27 16:23:43 +01:00
artmetla 4d212a9a5b Update regular expression in metadata.schema.v3.json to add Android releases support 2025-11-27 16:23:07 +01:00
Artem Metla ea8b117f6e kernelCTF: server: upload Android related scripts and APK source code 2025-11-27 13:50:34 +01:00
artmetla b706f60a9b Improve kernelCTF auto releaser to handle Android releases (#284)
- The auto-releaser would wok in a following logic:
   1. Access https://androidbuildinternal.googleapis.com/android/internal/build/v3/builds?branches=aosp-android-latest-release&buildAttemptStatus=complete&buildType=submitted&maxResults=1&successful=true&target=aosp_cf_x86_64_only_phone-userdebug to get an information about latest Android build available in JSON format. 
   2. We take the build number and using fetch_artifact (https://android.googlesource.com/tools/fetch_artifact/) attempt to download "kernel_version.txt" artefact from Android build to get all the necessary build details. 
   3. Using build details check if kernelCTF GCS bucket contains already the release. If not add it to releases that should be processed by kernelctf-release-build action.
- The logic of kernelctf-release-build action updated to handle new naming style of Android releases.
2025-11-27 13:31:33 +01:00
Tamás Koczka a1a0b27123 kernelCTF: Update FAQ how to build kernelCTF releases
Added new FAQ entries regarding bounty payments and kernelCTF target rebuilding.
2025-11-25 17:12:39 +01:00
Tamás Koczka 7c3d42660a kernelCTF: Clarify condition for patch landing in rules (#283)
* kernelCTF: Clarify condition for patch landing in rules

* kernelCTF: Clarify wording in rules for 0-day submissions
2025-11-24 15:04:00 +01:00
Bien Pham d4a08c0ef1 kernelctf: add CVE-2023-4015_lts_2 (#142)
* kernelctf: add CVE-2023-4015_lts_2

* Rename post exploit func

* Remove some unneeded comments

* Add comment on reclaim

* Add comments in trigger_uaf

* Mark unused variable

* Add comment about where rsi is pointing to

* Define some magic numbers

* Fix failing compilation
2025-11-21 10:33:31 -08:00
chanijindal1 bc5f5d844e Revert "Add kernelCTF CVE-2025-21703_lts_cos (#276)" (#281)
This reverts commit 9c5e122d3c. PR 276 still needs to be reviewed. Reverting so it can go through the correct process
2025-11-21 10:28:23 -08:00
mingi 9c5e122d3c Add kernelCTF CVE-2025-21703_lts_cos (#276)
* Add kernelCTF CVE-2025-21703_lts_cos

* update filename

* update metadata.json

* update metadata.json

* update exploit.c

---------

Co-authored-by: Mingi Cho <mgcho.minic@gmail.com>
2025-11-21 03:33:47 -08:00