{"id":"CVE-2026-93167","aliases":["CVE-2026-93167"],"related":[],"kind":"vulnerability","state":"published","title":"csky: Fix a4/a5 restoration in syscall trace path","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ncsky: Fix a4/a5 restoration in syscall trace path\n\nThe syscall trace path reloads syscall arguments from pt_regs before\ncalling the syscall handler. On C-SKY ABIv2, the 5th and 6th syscall\narguments are prepared as stack arguments before invoking syscallid.\n\nThe current code adjusts sp before loading LSAVE_A4 and LSAVE_A5. Since\nthose offsets are relative to the original pt_regs base, loading them\nafter changing sp fetches the wrong slots. As a result, traced syscalls\nthat use the 5th or 6th argument may receive corrupted arguments.\n\nThis is visible with mmap2(), which takes six arguments. A small\nPTRACE_SYSCALL reproducer opens a file and maps one page with:\n\n  mmap(NULL, 4096, PROT_READ | PROT_EXEC, MAP_PRIVATE, fd, 0)\n\nBefore the fix, the traced child fails the mmap and exits with 12.\nAfter the fix, the mapping succeeds and the child exits with 0.\n\nFix the trace path by loading a4/a5 from pt_regs before changing sp.\n\nTested on: ck860f, linux-4.19.15, C-SKY abiv2","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ncsky: Fix a4/a5 restoration in syscall trace path\n\nThe syscall trace path reloads syscall arguments from pt_regs before\ncalling the syscall handler. On C-SKY ABIv2, the 5th and 6th syscall\narguments are prepared as stack arguments before invoking syscallid.\n\nThe current code adjusts sp before loading LSAVE_A4 and LSAVE_A5. Since\nthose offsets are relative to the original pt_regs base, loading them\nafter changing sp fetches the wrong slots. As a result, traced syscalls\nthat use the 5th or 6th argument may receive corrupted arguments.\n\nThis is visible with mmap2(), which takes six arguments. A small\nPTRACE_SYSCALL reproducer opens a file and maps one page with:\n\n  mmap(NULL, 4096, PROT_READ | PROT_EXEC, MAP_PRIVATE, fd, 0)\n\nBefore the fix, the traced child fails the mmap and exits with 12.\nAfter the fix, the mapping succeeds and the child exits with 0.\n\nFix the trace path by loading a4/a5 from pt_regs before changing sp.\n\nTested on: ck860f, linux-4.19.15, C-SKY abiv2","source":"cvelist"}],"published":"2026-09-17T16:11:59.234Z","modified":"2026-10-19T10:17:07.000Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"e0bbb53843b5fdfe464b099217e3b9d97e8a75d7","fixed":"e9ae8e86eed68bea5d2670eadf61938a43bd2263","status":"affected"},{"type":"git","introduced":"e0bbb53843b5fdfe464b099217e3b9d97e8a75d7","fixed":"64e3ec7a71d3b715e2567f19f64207f04999bb0c","status":"affected"},{"type":"git","introduced":"e0bbb53843b5fdfe464b099217e3b9d97e8a75d7","fixed":"863fa63fd1491f201ac819f805a8db98d2a32c3d","status":"affected"},{"type":"git","introduced":"e0bbb53843b5fdfe464b099217e3b9d97e8a75d7","fixed":"e71a3dc5b8d2ea4d9cfbdb135d6b7777de84212e","status":"affected"},{"type":"git","introduced":"e0bbb53843b5fdfe464b099217e3b9d97e8a75d7","fixed":"31c81b376e5f058c7f2c94f69719cf7caec2fc3f","status":"affected"},{"type":"git","introduced":"e0bbb53843b5fdfe464b099217e3b9d97e8a75d7","fixed":"a776afa89424570bfa637ebf812ca281a5732904","status":"affected"},{"type":"git","introduced":"e0bbb53843b5fdfe464b099217e3b9d97e8a75d7","fixed":"343aa5275484d627c921a42e8e115cae366be5de","status":"affected"},{"type":"git","introduced":"e0bbb53843b5fdfe464b099217e3b9d97e8a75d7","fixed":"abb81e5ce7d995baa41556b8125fa59e28ba3be8","status":"affected"},{"type":"git","version":"108681048cf728a8570e036c34ebd7daa43133b4","status":"affected"},{"type":"git","version":"3a5837c692918c229baf63fe7950965d27c48ac2","status":"affected"},{"type":"semver","introduced":"5.4.47","fixed":"5.5","status":"affected"},{"type":"semver","introduced":"5.6.19","fixed":"5.7","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.7","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.7","status":"unaffected"},{"type":"semver","introduced":"5.10.270","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.221","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.188","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.157","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.110","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.52","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.6","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/e9ae8e86eed68bea5d2670eadf61938a43bd2263","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/64e3ec7a71d3b715e2567f19f64207f04999bb0c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/863fa63fd1491f201ac819f805a8db98d2a32c3d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e71a3dc5b8d2ea4d9cfbdb135d6b7777de84212e","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/31c81b376e5f058c7f2c94f69719cf7caec2fc3f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a776afa89424570bfa637ebf812ca281a5732904","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/343aa5275484d627c921a42e8e115cae366be5de","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/abb81e5ce7d995baa41556b8125fa59e28ba3be8","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-93167","url":"https://www.cve.org/CVERecord?id=CVE-2026-93167","licence":"CVE Terms of Use","modified":"2026-10-19T09:06:39.063Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-93167","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-93167","licence":"Public domain","modified":"2026-10-19T10:17:07.000Z"}],"updatedAt":"2026-11-25T22:59:39.476Z","epss":{"score":0.0022,"percentile":0.07306,"date":"2026-11-30T12:00:22.000Z"}}