Elektrine lite

← Feed

@zhuowei@notnow.dev

2026-05-15 03:33 UTC

More macOS 15.7.7 diffs: msgget, instead of doing /* Make sure that the returned msqid is unique */ msqptr->u.msg_perm._seq++; (seq is a short) Now does something fancier: (decompiled:) int uVar1 = msqptr->u.msg_perm._seq; msqptr->u.msg_perm._seq = uVar1 & ((short)uVar1 >> 0xf ^ 0xffffU); https://github.com/apple-oss-distributions/xnu/blob/5c306bec31e314fa4d8bbdafb2f6f5a6b7e7b291/bsd/kern/sysv_msg.c#L670

Replies (2)

  • @zhuowei@notnow.dev 2026-05-15 04:18

    semget and shmget_allocate_segment also gets its _seq = (_seq + 1) & 0x7fff changed to this fancier sequence: https://github.com/apple-oss-distributions/xnu/blob/5c306bec31e314fa4d8bbdafb2f6f5a6b7e7b291/bsd/kern/sysv_sem.c#L936 semop and shmctl now uses VM_KERNEL_ADDRHASH to hash some data before sending to userspace.

    Open ##2918119

  • @zhuowei@notnow.dev 2026-05-15 04:43

    OK, I’m not smart enough to figure out if the msgctl(IPC_SET) is exploitable: an LLM outputs one plausible-sounding vector (https://gist.github.com/zhuowei/390b9e171641561f88ceb2119d984bc1), but I am not knowledgable to say whether it’s doable or if it matches CVE-2026-28986.

    Open ##2918120