Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 754F24F403E for ; Thu, 17 Sep 2026 16:40:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789663213; cv=none; b=sZu0KbLMv+Qltiw4lTXwnSwVIzf/CTGjIYhZp613ficGSPQXBu7DL7RXzhuSfOCMV+IfACP7GCXgYFf3S6ZzK3hHYsiv7pXbZOgSth+kk/NeVxN2ZHmA9o7vphJKkXVibfFZ48fRk9olByMq6/2+FP0rTr63ht+uQIUCSK04JqY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789663213; c=relaxed/simple; bh=ZfMWlTcKF3lN2ECZFJmZvVLfecXvjaV49oCwZEEs3uE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=AhAOHtBiu+CPaXbjySAdmaPwHbGn+4GDSeETgKa/L7XsFzc2Ak4MphrIvpREkLK8goaYBKE150+W1SuiY50hBsNcEHSHpMKfkY7B9nAO2AmT/t6Ehdp3qHmKl1Du1tsTO4twtImKk9rq3ED33iC4CXkI9NdI91pD54MQ3XNLPZA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=rRGiHfdk; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="rRGiHfdk" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C44741F000FF; Thu, 17 Sep 2026 16:40:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789663212; bh=iHK6FQ2NH0jqOAH5PJfb0Db+dBs6/FuzYfmJGUAdwQg=; h=From:To:Cc:Subject:Date:Reply-To; b=rRGiHfdkD7/VvvOxcPxoczjV+5w/Ppi7ebiD8FrryqDZczcrsASUTWBs25wilRVa9 lV1k6bwhE8uiVHaq6F3BtYLvTWL5lGeELuDirkEpAUQcUWQ+QO3bX2w3FHKWD8NTCG R9/Op0hXGdap5wbZnM6pYCG+p6Z4QQRSI3eEoYVM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-93167: csky: Fix a4/a5 restoration in syscall trace path Date: Thu, 17 Sep 2026 17:17:24 +0100 Message-ID: <2026091759-CVE-2026-93167-c1ee@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=4239; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=MQNjcbocEHb5/Fh11A0kDYNGrDiJtwOdiS5FePpHTpY=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlrBK5z3EzW27TXXPLI1cx8TV8ljbCarTtaZPNL0udpT 9YvV//VEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABM5f5VhnrW1yvp7O2abCJcU bnmqp6S7We3eVoYFawyMNtm26sy6UT9v+ve9ZjfrWM0OAQA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: csky: Fix a4/a5 restoration in syscall trace path The syscall trace path reloads syscall arguments from pt_regs before calling the syscall handler. On C-SKY ABIv2, the 5th and 6th syscall arguments are prepared as stack arguments before invoking syscallid. The current code adjusts sp before loading LSAVE_A4 and LSAVE_A5. Since those offsets are relative to the original pt_regs base, loading them after changing sp fetches the wrong slots. As a result, traced syscalls that use the 5th or 6th argument may receive corrupted arguments. This is visible with mmap2(), which takes six arguments. A small PTRACE_SYSCALL reproducer opens a file and maps one page with: mmap(NULL, 4096, PROT_READ | PROT_EXEC, MAP_PRIVATE, fd, 0) Before the fix, the traced child fails the mmap and exits with 12. After the fix, the mapping succeeds and the child exits with 0. Fix the trace path by loading a4/a5 from pt_regs before changing sp. Tested on: ck860f, linux-4.19.15, C-SKY abiv2 The Linux kernel CVE team has assigned CVE-2026-93167 to this issue. Affected and fixed versions =========================== Issue introduced in 5.7 with commit e0bbb53843b5fdfe464b099217e3b9d97e8a75d7 and fixed in 5.10.270 with commit e9ae8e86eed68bea5d2670eadf61938a43bd2263 Issue introduced in 5.7 with commit e0bbb53843b5fdfe464b099217e3b9d97e8a75d7 and fixed in 5.15.221 with commit 64e3ec7a71d3b715e2567f19f64207f04999bb0c Issue introduced in 5.7 with commit e0bbb53843b5fdfe464b099217e3b9d97e8a75d7 and fixed in 6.1.188 with commit 863fa63fd1491f201ac819f805a8db98d2a32c3d Issue introduced in 5.7 with commit e0bbb53843b5fdfe464b099217e3b9d97e8a75d7 and fixed in 6.6.157 with commit e71a3dc5b8d2ea4d9cfbdb135d6b7777de84212e Issue introduced in 5.7 with commit e0bbb53843b5fdfe464b099217e3b9d97e8a75d7 and fixed in 6.12.110 with commit 31c81b376e5f058c7f2c94f69719cf7caec2fc3f Issue introduced in 5.7 with commit e0bbb53843b5fdfe464b099217e3b9d97e8a75d7 and fixed in 6.18.52 with commit a776afa89424570bfa637ebf812ca281a5732904 Issue introduced in 5.7 with commit e0bbb53843b5fdfe464b099217e3b9d97e8a75d7 and fixed in 7.2.6 with commit 343aa5275484d627c921a42e8e115cae366be5de Issue introduced in 5.7 with commit e0bbb53843b5fdfe464b099217e3b9d97e8a75d7 and fixed in 7.3-rc1 with commit abb81e5ce7d995baa41556b8125fa59e28ba3be8 Issue introduced in 5.4.47 with commit 108681048cf728a8570e036c34ebd7daa43133b4 Issue introduced in 5.6.19 with commit 3a5837c692918c229baf63fe7950965d27c48ac2 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-93167 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: arch/csky/kernel/entry.S Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/e9ae8e86eed68bea5d2670eadf61938a43bd2263 https://git.kernel.org/stable/c/64e3ec7a71d3b715e2567f19f64207f04999bb0c https://git.kernel.org/stable/c/863fa63fd1491f201ac819f805a8db98d2a32c3d https://git.kernel.org/stable/c/e71a3dc5b8d2ea4d9cfbdb135d6b7777de84212e https://git.kernel.org/stable/c/31c81b376e5f058c7f2c94f69719cf7caec2fc3f https://git.kernel.org/stable/c/a776afa89424570bfa637ebf812ca281a5732904 https://git.kernel.org/stable/c/343aa5275484d627c921a42e8e115cae366be5de https://git.kernel.org/stable/c/abb81e5ce7d995baa41556b8125fa59e28ba3be8