From patchwork Tue Jun 25 20:57:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bethany Jamison X-Patchwork-Id: 1952257 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=185.125.189.65; helo=lists.ubuntu.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=patchwork.ozlabs.org) Received: from lists.ubuntu.com (lists.ubuntu.com [185.125.189.65]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4W7xx13dKxz20X6 for ; Wed, 26 Jun 2024 06:57:40 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=lists.ubuntu.com) by lists.ubuntu.com with esmtp (Exim 4.86_2) (envelope-from ) id 1sMDEB-0003T5-Fz; Tue, 25 Jun 2024 20:57:23 +0000 Received: from smtp-relay-internal-0.internal ([10.131.114.225] helo=smtp-relay-internal-0.canonical.com) by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1sMDE9-0003Sl-J3 for kernel-team@lists.ubuntu.com; Tue, 25 Jun 2024 20:57:21 +0000 Received: from mail-io1-f69.google.com (mail-io1-f69.google.com [209.85.166.69]) (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 smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id 661E13FA91 for ; Tue, 25 Jun 2024 20:57:21 +0000 (UTC) Received: by mail-io1-f69.google.com with SMTP id ca18e2360f4ac-7e20341b122so796487339f.1 for ; Tue, 25 Jun 2024 13:57:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719349040; x=1719953840; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=vysWxLIaj82tpcR8T0NZ8a25lK4tpX4KTMFRKyZtUmQ=; b=nvzCXlaDIzuUF2h3yzhei+oAOTDlAF4jIDDEemXO7nqHSEu39r4bQzqm/MdT96s2qk rqKOvWJFIMSEd/5mpKtxRzCCtb9ImNhbzDQwq4q3nRgt8UKhwkcfS8mcdgcUe+58nN28 FNgEU4TuuPAZeM4kFfVnrN8Fwo60uyloyboXJ5uoCR06/91aBqW9plSHjVCaDXpzNOgu WcBsYcnZm7L76Optz1REV8HNZKtH+22aKq7/bnnN1s1UcvvI0GsNoBAC1yOLGkEfXaWm devV4en5biXgIzfMgfh6S2f6JL60a8wn+h1Kg/dSCO/Lywtt6eVbXL9aE3ocK737d8sB rtUw== X-Gm-Message-State: AOJu0YztnWY0iH/Dk0qCy0httsoCkg1EHIZV2/2G+ldhwAywCwZS41nj o24yNToDmzCc6IOtN0R+YxYRAOMgFPAht8X1XTOo0lftzce9V43BhYkwjWQoGegdVQctrbJ7I3t sDCmq0637oPfQiZvEzK+8gLqsjgPAm37xaOj9XDWjnAJP99oO75hMbiNnwUz8FVTI3v6QONRNHu sZC6dRE18ZkA== X-Received: by 2002:a05:6602:1549:b0:7eb:776f:d970 with SMTP id ca18e2360f4ac-7f3a75d95e8mr916308539f.14.1719349040058; Tue, 25 Jun 2024 13:57:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHBUeCRMoBC2YxwVbq7VQ4dSEEOJJ7G09GzoKwX0T2I/3ImYA7xrtis9W59TYPBdHvFzBcOFw== X-Received: by 2002:a05:6602:1549:b0:7eb:776f:d970 with SMTP id ca18e2360f4ac-7f3a75d95e8mr916306939f.14.1719349039692; Tue, 25 Jun 2024 13:57:19 -0700 (PDT) Received: from smtp.gmail.com (167-248-51-36.oa02.lnk04.ne.dynamic.allophone.net. [167.248.51.36]) by smtp.gmail.com with ESMTPSA id 8926c6da1cb9f-4ba0824fe1esm847985173.18.2024.06.25.13.57.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Jun 2024 13:57:19 -0700 (PDT) From: Bethany Jamison To: kernel-team@lists.ubuntu.com Subject: [SRU][N][PATCH 0/1] CVE-2024-35984 Date: Tue, 25 Jun 2024 15:57:17 -0500 Message-Id: <20240625205718.26479-1-bethany.jamison@canonical.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" [Impact] i2c: smbus: fix NULL function pointer dereference Baruch reported an OOPS when using the designware controller as target only. Target-only modes break the assumption of one transfer function always being available. Fix this by always checking the pointer in __i2c_transfer. [Fix] Noble: Clean cherry-pick from linux-6.8.y Jammy: pending Focal: pending Bionic: fix sent to esm ML Xenial: fix sent to esm ML Trusty: not affected [Test Case] Compile and boot tested [Where problems could occur] This fix affects those who use I2C protocol, an issue with this fix would be visible to the user via unexpected system behavior or a system crash. Wolfram Sang (1): i2c: smbus: fix NULL function pointer dereference drivers/i2c/i2c-core-base.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) Acked-by: Thibault Ferrante Acked-by: Manuel Diewald