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 4A682217659 for ; Sat, 22 Aug 2026 15:40:03 +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=1787413204; cv=none; b=FpHWP3OrlhY1ur+sEXSvyCIuvZW2Me0NvgEAQ1pTdLQfn+FtNbhCWOTPQRL7xWHgxIHwxmZbKqpqHQmkLHRGLZ+0BsQtn+THNVerAaUs33bPEKKFw6Q7KEvqORAj9+1L4YQO6RrifH9PMKG816ef5jRkxD+D7uP+OGFvb9SmsUw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787413204; c=relaxed/simple; bh=4DytPO+UCXW39eof5KVhbfdEZN++DEH/HynwuS4APU8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=rg6qBYFImrc95+w4giTacT8HEiSFjdCWGGsfqzxo1WY2utAPU2Bt/Yr7v9KDoOUB7saxrQQ30gd2noXBqDZ+7iBJnH3RX6RcHdobplmDdMu0F4BjsvpgpTHboc37etrreeEjNeTtQZSQThUHaVnOpQaieGc+rNy4cqsvZvic4zo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=bGpaRcJS; 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="bGpaRcJS" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 96B091F000E9; Sat, 22 Aug 2026 15:40:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1787413203; bh=8gFmrBAuFZwXkhvOinxGhQe+CeyrhbO6gH+WQh0osmE=; h=From:To:Cc:Subject:Date:Reply-To; b=bGpaRcJS+KkZGwPOTZ7xkV06BKVp52kJPo6zccrGcWScmm1CZqoqM8ftJ7Pb017qq eA0uaMuJ+3HKoesUrRTLZFUxyWAc/oZbOPT0Fze9JZDVFcXtykimO9w4ulYeLjW+rs rHD9s2GHz1YkCsXG9UGpkw38gmSXizYdV4fOwuSs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-74689: net/atm: fix slab-out-of-bounds read in vcc_setsockopt() Date: Sat, 22 Aug 2026 17:32:53 +0200 Message-ID: <2026082233-CVE-2026-74689-95e5@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=3702; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=7N1C5Ik4oVu4F5238PBV9EMhg8Q3qL2XuGVrEmqcd+Q=; b=owGbwMvMwCRo6H6F97bub03G02pJDFmdB65a92u1C7eeNtTwrNv36P/jZa0hK84n/+ppXpv3u tL/5OywjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZgIly3DXIHgeZpNszlq7n96 PDnhgherzLkZTQzzLM+z/no3kW33naJV1tkbdT/dSRI7DQA= 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: net/atm: fix slab-out-of-bounds read in vcc_setsockopt() vcc_setsockopt() contained an ineffective optlen check: if (__SO_LEVEL_MATCH(optname, level) && optlen != __SO_SIZE(optname)) return -EINVAL; If __SO_LEVEL_MATCH(optname, level) evaluated to false (e.g. if the caller passed a mismatched level), the length check optlen != __SO_SIZE(optname) was short-circuited and bypassed. Execution then fell through to switch(optname), calling copy_from_sockptr() assuming optval contained sufficient space. Furthermore, even if level matched, a cgroup BPF setsockopt filter could shrink optlen after entry. Because copy_from_sockptr() on kernel pointers uses memcpy(), this leads to a KASAN slab-out-of-bounds read when optlen is smaller than the expected structure size. Fix this by using copy_safe_from_sockptr(), which unconditionally validates that optlen is at least the expected size before copying. Also change the local 'value' variable type from 'unsigned long' to 'int' so that SO_SETCLP matches its sizeof(int) ABI encoding on 64-bit systems. The Linux kernel CVE team has assigned CVE-2026-74689 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.1.183 with commit b3bcd5d65ac03c15787b2a5b36c718e26a689336 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.6.152 with commit 35f258fee9ed358c6d0f57f91c30bf029c3724af Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.12.104 with commit 6eb6af88710977eb529b558a07294874d8c40c4d Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.18.45 with commit 9f77c1ab382188f5b51982fab6d913443b6dc59f Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 7.1.9 with commit 2c5988c7349c0b64a7e0441bfc6e1dca54f7116a Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 7.2 with commit d0c80dbb970439bd2eeb0e5effff8c16a5f4e1e3 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-74689 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: net/atm/common.c 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/b3bcd5d65ac03c15787b2a5b36c718e26a689336 https://git.kernel.org/stable/c/35f258fee9ed358c6d0f57f91c30bf029c3724af https://git.kernel.org/stable/c/6eb6af88710977eb529b558a07294874d8c40c4d https://git.kernel.org/stable/c/9f77c1ab382188f5b51982fab6d913443b6dc59f https://git.kernel.org/stable/c/2c5988c7349c0b64a7e0441bfc6e1dca54f7116a https://git.kernel.org/stable/c/d0c80dbb970439bd2eeb0e5effff8c16a5f4e1e3