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 39D66381E95 for ; Thu, 17 Sep 2026 16:25:16 +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=1789662317; cv=none; b=KWXTbaRrrepR+aglYLuQojoneQRUTaIyKmmKfGMzfAwZAIVS+YId158ei896V6fhGZcrKwaLmmXDapf+WPj1AqVbUhcEl9numOWY2HWRzvk77sa1h9nyecACGWrwJW+VmfDMBwMVi4bo21JLnw3FCSBvgiyNW5uvPm3vMzII6vE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789662317; c=relaxed/simple; bh=IvxH21a3qWfisR7ki0lwJDwPUQsCkCrOnTXpQQSgGLM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Ii1UFsb9Pm4wjOQsAaLXQl5DJyFBS5RNzJ6T2U7R/6cEI/cjqAidCnoXlfhmh3uPQLpU+i5PlIGPJQjqDzhQXis2F1zMjbOUTH9apZ5zebDOjZHhTXfpocAwEUC1mbNw3m/3K0NXe5KKutUQdwHiF+1oJxuY/1I7/g0Mfp5xJ2Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=DD4BkR84; 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="DD4BkR84" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 87B161F00893; Thu, 17 Sep 2026 16:25:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789662316; bh=5/I4psBhkxDuAv4QQKUzJwt6f/341QjlY/xx7QRleis=; h=From:To:Cc:Subject:Date:Reply-To; b=DD4BkR84hxOM0ydMaG2/B4aDu+YUu58+NCbCJP+KjKNniTkuHLsYFFFyUeUqXRtvL SRb5Uest5UamfvBVm6s3opQtNB+8CpQIx2DOunWoL69jWy6cx7Xo9fSkvMp0mm92Eo JHkklFxiAQREoki9me4Gzroz5pIrXxKw7xRJAZds= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-90312: bpf: Check load-acquire src ptr type before the load Date: Thu, 17 Sep 2026 17:12:22 +0100 Message-ID: <2026091756-CVE-2026-90312-9a93@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=3529; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=sYPMZrVMBOlGOoLC4euFbEuW3tBymU7yRmjlzvQWPI4=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlrBGYkPZgWc8c2ZIHcvKXdDNEf3+svLxMKtJB49MHob omrUnFMRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEyk4CHDgo0bZv2Qma+ZF7dj vjrjhhNCL3aZRzHM4a3oSSybWaLcuEbISnbBnDvZFocuAAA= 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: bpf: Check load-acquire src ptr type before the load check_atomic_load() calls check_load_mem() before atomic_ptr_type_ok(). For a load-acquire that fetches into its own source register (dst_reg == src_reg), check_load_mem() overwrites src_reg's type with the type of the loaded value, so the subsequent atomic_ptr_type_ok() no longer sees the source pointer and fails to reject the disallowed types (ctx, pkt, flow_keys, sock). Since bpf_convert_ctx_accesses() does not rewrite atomic loads, the raw access to the underlying kernel object is left in place. The destination type is taken from the ctx access itself, so a load-acquire of the sk field of struct __sk_buff for example leaves the register typed as PTR_TO_SOCK_COMMON_OR_NULL, which type_is_sk_pointer() does not match either, while it actually holds unconverted struct sk_buff bytes. Once the NULL check has passed this is a type confusion, not just a leak of kernel data. Validate src_reg with check_reg_arg() and check the source pointer type with atomic_ptr_type_ok() before the load again, mirroring check_atomic_rmw(). Out-of-range register numbers are already rejected earlier by check_and_resolve_insns() (commit 503d21ef8eac ("bpf: Do register range validation early")), and the only exemption there, is_stack_arg_ldx(), requires BPF_LDX | BPF_MEM | BPF_DW and thus never matches a BPF_ATOMIC insn. atomic_ptr_type_ok() can therefore not dereference register state out of bounds, that is, the out-of-bounds read addressed by the Fixes commit below does not reappear (as proven also via selftest). The Linux kernel CVE team has assigned CVE-2026-90312 to this issue. Affected and fixed versions =========================== Issue introduced in 6.15 with commit c03bb2fa327e4c25d6c5360a8803a4b1cdc2d0b9 and fixed in 6.18.52 with commit 6ee7b00888498cf387dd30729e18a05328b94709 Issue introduced in 6.15 with commit c03bb2fa327e4c25d6c5360a8803a4b1cdc2d0b9 and fixed in 7.2.6 with commit 422a416041172af1ac610736d5f556d22b31b115 Issue introduced in 6.15 with commit c03bb2fa327e4c25d6c5360a8803a4b1cdc2d0b9 and fixed in 7.3-rc1 with commit b87803391baa7e0bef60549d8841f12e549ad057 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-90312 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: kernel/bpf/verifier.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/6ee7b00888498cf387dd30729e18a05328b94709 https://git.kernel.org/stable/c/422a416041172af1ac610736d5f556d22b31b115 https://git.kernel.org/stable/c/b87803391baa7e0bef60549d8841f12e549ad057