From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from picard.linux.it (picard.linux.it [213.254.12.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4F965C61DD6 for ; Wed, 2 Sep 2026 21:26:44 +0000 (UTC) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 8DB583E984E for ; Wed, 2 Sep 2026 23:26:42 +0200 (CEST) Received: from in-7.smtp.seeweb.it (in-7.smtp.seeweb.it [IPv6:2001:4b78:1:20::7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id C54173E93B3 for ; Wed, 2 Sep 2026 23:26:00 +0200 (CEST) Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by in-7.smtp.seeweb.it (Postfix) with ESMTPS id 4ED7F2000C6 for ; Wed, 2 Sep 2026 23:25:59 +0200 (CEST) Received: from imap1.dmz-prg2.suse.org (unknown [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 81BAF21A48; Wed, 2 Sep 2026 21:25:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1788384354; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=QuNvUMga1ACV1vW7O6juX6iKQNKWigUgl+fUV3DyuQ8=; b=ZzThT8e/otNXdR0nYhpUa/rBsAp5UBafyug0lN7WMcmFbz1UVqncKz7ffJQiJDHEV89rj7 IeRnI6wIaWjVWblAR0c/47nZMFUXFk9k4YuB818fWnds4e7iasOKL/SFz7z0S/BS2TN22e N4/naeAJHdLuLI9UM/yBCofn/5rxdjI= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1788384354; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=QuNvUMga1ACV1vW7O6juX6iKQNKWigUgl+fUV3DyuQ8=; b=mpRQ+maZCkpbgnF4eecG5P71OKtEhlz42J9szw1K5iENM/QdDWmUglRWvrGu5zTUaZ4wKE lOd4vbly3AbJ0nAQ== Authentication-Results: smtp-out1.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1788384350; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=QuNvUMga1ACV1vW7O6juX6iKQNKWigUgl+fUV3DyuQ8=; b=eQzS0jSZ1FpAzjuKOQBkNm6vzVJPhMeMjh3LRrnQOWlbH2kb1groJr88sQ+xWRz08j3a3I AU9W1hTupqMUPhLkboxaBKG7SRPVJ42qoPVOK29gb7IGyvMHU3aRRuRa8mdbev6Z8+A3En M5q7J0hkTDchvA91TVXhyh6AR90BtgE= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1788384350; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=QuNvUMga1ACV1vW7O6juX6iKQNKWigUgl+fUV3DyuQ8=; b=bq5OgPM8j2BLc3vKdPtFdkfg2t6sOPvp/PagHMsPJ/h5iSYD68LSvBwZxs1lRBWbJL3bZM 658ElAWVeAzdZfBA== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 4512A136E6; Wed, 2 Sep 2026 21:25:50 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id gTcVDl6UmGpbMAAAD6G6ig (envelope-from ); Wed, 02 Sep 2026 21:25:50 +0000 From: Andrea Cervesato Date: Wed, 02 Sep 2026 23:25:47 +0200 Message-Id: <20260902-cve-ghostlock-v5-0-569b9eb37941@suse.com> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAFuUmGoC/33MSw6CMBSF4a2Qjq1pbx8UR+7DOIByC42PGqqNh rB3CyNCosNzku8fScTBYySHYiQDJh99uOehdgWxfX3vkPo2bwIMNDOMU5uQdn2Iz2uwF6oRZQN OV67VJJvHgM6/l97pnHfv4zMMnyWf+Pz+KiVOGeWlyS3jqpLBMb4i7m24kTmUYI3FFkPGjWbKG KMEl2yDxV8sMrYtGuFqCVVTbrBcYdBbLDNWgLaSrdZCuRWepukLsRnQ0mABAAA= X-Change-ID: 20260801-cve-ghostlock-6ee4b2f69fd6 To: Linux Test Project X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1788384350; l=2194; i=andrea.cervesato@suse.com; s=20251210; h=from:subject:message-id; bh=A7j0FlwZI6yV1n5t24mjqpwee7cOVQ2Qg9U9e+RQqR4=; b=pjNk2/IhwRCT6mGZMgsKvfURli5+CBAfRV47IM11O0mf9ZK4zUW8fM/WZb90viV9Gk9j3vrrA s8/6xDq9t0hCddY7dnxroq5VaHvVAVhshb5kkjZ7NFg6Z+/wH9jB31i X-Developer-Key: i=andrea.cervesato@suse.com; a=ed25519; pk=zKY+6GCauOiuHNZ//d8PQ/UL4jFCTKbXrzXAOQSLevI= X-Spamd-Result: default: False [-4.30 / 50.00]; BAYES_HAM(-3.00)[100.00%]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.20)[-0.997]; MIME_GOOD(-0.10)[text/plain]; RCPT_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; TO_DN_ALL(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.com:email,suse.com:mid] X-Virus-Scanned: clamav-milter 1.0.9 at in-7.smtp.seeweb.it X-Virus-Status: Clean Subject: [LTP] [PATCH v5 0/3] Reproducer for ghostlock X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ltp-bounces+ltp=archiver.kernel.org@lists.linux.it Sender: "ltp" Test for CVE-2026-43499 (GhostLock), a stack use-after-free in the rtmutex PI code, fixed in kernel v7.1: 3bfdc63936dd ("rtmutex: Use waiter::task instead of current in remove_waiter()") Reproducer based on the Nebula Security writeup and open-sourced PoC (https://nebusec.ai/research/ionstack-part-2/, https://github.com/NebuSec/CyberMeowfia). Beware, this test will crash the system on a vulnerable kernel. Assisted by Kimi K3 for the analysis and written mostly with Gemini Pro 3.1 Max. Signed-off-by: Andrea Cervesato --- Changes in v5: - reduced synchronization checkpoints from 5 to 3 - introduced and used SAFE_SCHED_SETATTR() in lapi/sched.h - dropped unused PR_SET_MM_MAP_SIZE probe in setup() - fixed duplicated -pthread entry in Makefile - fixed CVE numerical ordering in runtest/cve - Link to v4: https://lore.kernel.org/20260826-cve-ghostlock-v4-0-52ec94d6635f@suse.com Changes in v4: - handle runtime inside the test - increase futext wait so we don't TBROK before runtime - comment prctl() syscall - move static vars out of the run function - Link to v3: https://lore.kernel.org/20260803-cve-ghostlock-v3-0-cde83fa429b7@suse.com Changes in v3: - improve sync mechanism - fix lapi imports - Link to v2: https://lore.kernel.org/20260803-cve-ghostlock-v2-0-b60588853140@suse.com Changes in v2: - fix build - fix 32bit run - Link to v1: https://lore.kernel.org/20260801-cve-ghostlock-v1-0-178f698f9702@suse.com --- Andrea Cervesato (3): lapi/sched: add SAFE_SCHED_SETATTR() lapi/prctl: add more fallback definitions cve: add CVE-2026-43499 reproducer configure.ac | 2 + include/lapi/prctl.h | 25 +++++ include/lapi/sched.h | 19 ++++ runtest/cve | 1 + testcases/cve/.gitignore | 1 + testcases/cve/Makefile | 2 +- testcases/cve/ghostlock.c | 244 ++++++++++++++++++++++++++++++++++++++++++++++ 7 files changed, 293 insertions(+), 1 deletion(-) --- base-commit: 12724413534a6d4160ff9694ba6f09daa4ccb6bd change-id: 20260801-cve-ghostlock-6ee4b2f69fd6 Best regards, -- Andrea Cervesato -- Mailing list info: https://lists.linux.it/listinfo/ltp