From patchwork Thu Mar 21 14:56:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bethany Jamison X-Patchwork-Id: 1914460 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 4V0pT02wvSz1yWs for ; Fri, 22 Mar 2024 01:56:52 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=lists.ubuntu.com) by lists.ubuntu.com with esmtp (Exim 4.86_2) (envelope-from ) id 1rnJqR-00089D-H0; Thu, 21 Mar 2024 14:56:39 +0000 Received: from smtp-relay-internal-1.internal ([10.131.114.114] helo=smtp-relay-internal-1.canonical.com) by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1rnJq1-00084q-Kr for kernel-team@lists.ubuntu.com; Thu, 21 Mar 2024 14:56:13 +0000 Received: from mail-il1-f198.google.com (mail-il1-f198.google.com [209.85.166.198]) (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-1.canonical.com (Postfix) with ESMTPS id 5CFE93F0F8 for ; Thu, 21 Mar 2024 14:56:13 +0000 (UTC) Received: by mail-il1-f198.google.com with SMTP id e9e14a558f8ab-3686105d808so10335885ab.3 for ; Thu, 21 Mar 2024 07:56:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711032971; x=1711637771; 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=rsM0u8LKbhIQiCAegnWhVOlPEiFVduycyxhxfxjeZRc=; b=G+LVXgogoaBZuqyJNMF9KbZv6B52x99AnsePlTTR8u4HBFlWdZbfdRWBwZMPGKALki Oj6oBq+pXPZmbuJNCVoEX43ORNCvOIf2XhxiUURDViVu9AfKS1zO9flwcmlTxRmG1n8w Aj2vvwyZFZ0oXIhvHZPIgXifjlQdflzodU6o7nd7n1jhSRzu0bHV6UFL7v0I5s6MCgAL kOZr/z/C4LSoJnEne64KkYs0FCTuEohVb3HoCM2J0ncjaX0fLGw1yqUKcIJPzIFq9P2C fhs/1LBo4vBZGxUw6g/X+jZGcwQ9GnLZ7j+nNZ8t1z7lDz6txDE0fUJpTIhq/i3uqlbv Y8Ow== X-Gm-Message-State: AOJu0YwqxhHJO9hHlNG2b6H/hNt39O+clKF160D4ojn4ylZyD53ROsWK qrB8b6yQjVcRU8XWbe7RPEMb2/DsebESY+KtXD8iXrZ3TvBDkzzlzRuFbebyoJs4wVQiFj/JaRf pOzJinaJGYc+ezaWvupa9yqgp3Uk4pFybHttQBR4il7pFUCkdx4aIPwDqdaLae+CJdheOPwZO7u Q/9PZwrwgc6g== X-Received: by 2002:a05:6e02:1189:b0:365:1ea2:2072 with SMTP id y9-20020a056e02118900b003651ea22072mr5325374ili.24.1711032971262; Thu, 21 Mar 2024 07:56:11 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE+OTtIsvU6FFa7Bp2uOQD5AWqAyIQq4atXbOG4ChQ4ImCvM5+f1FaEvJ7n/LpsklgHm1vfdw== X-Received: by 2002:a05:6e02:1189:b0:365:1ea2:2072 with SMTP id y9-20020a056e02118900b003651ea22072mr5325361ili.24.1711032970975; Thu, 21 Mar 2024 07:56:10 -0700 (PDT) Received: from smtp.gmail.com (104-218-69-129.dynamic.lnk.ne.allofiber.net. [104.218.69.129]) by smtp.gmail.com with ESMTPSA id c18-20020a056e02059200b0036850669876sm1565428ils.21.2024.03.21.07.56.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Mar 2024 07:56:10 -0700 (PDT) From: Bethany Jamison To: kernel-team@lists.ubuntu.com Subject: [SRU][F][PATCH 0/1] CVE-2020-36776 Date: Thu, 21 Mar 2024 09:56:08 -0500 Message-Id: <20240321145609.8159-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] In the Linux kernel, the following vulnerability has been resolved: thermal/drivers/cpufreq_cooling: Fix slab OOB issue Slab OOB issue is scanned by KASAN in cpu_power_to_freq(). If power is limited below the power of OPP0 in EM table, it will cause slab out-of-bound issue with negative array index. Return the lowest frequency if limited power cannot found a suitable OPP in EM table to fix this issue. Backtrace: [] die+0x104/0x5ac [] bug_handler+0x64/0xd0 [] brk_handler+0x160/0x258 [] do_debug_exception+0x248/0x3f0 [] el1_dbg+0x14/0xbc [] __kasan_report+0x1dc/0x1e0 [] kasan_report+0x10/0x20 [] __asan_report_load8_noabort+0x18/0x28 [] cpufreq_power2state+0x180/0x43c [] power_actor_set_power+0x114/0x1d4 [] allocate_power+0xaec/0xde0 [] power_allocator_throttle+0x3ec/0x5a4 [] handle_thermal_trip+0x160/0x294 [] thermal_zone_device_check+0xe4/0x154 [] process_one_work+0x5e4/0xe28 [] worker_thread+0xa4c/0xfac [] kthread+0x33c/0x358 [] ret_from_fork+0xc/0x18 [Fix] Mantic: not-affected Jammy: not-affected Focal: Backported - The fix commit changes the range of a for-loop, but Focal's for-loop was set up differently than upstream (decrementing instead of incrementing) so I modified the range of the for-loop to match the fix commit (0, max_level]. Bionic: Backported - being sent out via esm ML. Xenial: not-affected Trusty: not-affected [Test Case] Compile and boot tested. [Where problems could occur] This affectes those using the cpufreq_cooling thermal driver, issues could occur in memory management if this out-of-bounds issue causes power to be too low in the CPU. brian-sy yang (1): thermal/drivers/cpufreq_cooling: Fix slab OOB issue drivers/thermal/cpu_cooling.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Acked-by: Tim Gardner Acked-by: Portia Stephens