From owner-dev-commits-ports-all@freebsd.org Thu May 27 05:17:41 2021 Return-Path: Delivered-To: dev-commits-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 1A8B4632B05; Thu, 27 May 2021 05:17:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FrGKd0DmJz3pf4; Thu, 27 May 2021 05:17:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id E43711E3F5; Thu, 27 May 2021 05:17:40 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 14R5Hei8045856; Thu, 27 May 2021 05:17:40 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 14R5HecA045855; Thu, 27 May 2021 05:17:40 GMT (envelope-from git) Date: Thu, 27 May 2021 05:17:40 GMT Message-Id: <202105270517.14R5HecA045855@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Philip Paeps Subject: git: 23f6f30d5c54 - main - security/vuxml: add FreeBSD SA-21:11.smap MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: philip X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 23f6f30d5c54472a4039759ebb031ea4518b8c0b Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 May 2021 05:17:41 -0000 The branch main has been updated by philip: URL: https://cgit.FreeBSD.org/ports/commit/?id=23f6f30d5c54472a4039759ebb031ea4518b8c0b commit 23f6f30d5c54472a4039759ebb031ea4518b8c0b Author: Philip Paeps AuthorDate: 2021-05-27 05:17:01 +0000 Commit: Philip Paeps CommitDate: 2021-05-27 05:17:36 +0000 security/vuxml: add FreeBSD SA-21:11.smap --- security/vuxml/vuln.xml | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/security/vuxml/vuln.xml b/security/vuxml/vuln.xml index 122fd9f8865e..2183734a60a3 100644 --- a/security/vuxml/vuln.xml +++ b/security/vuxml/vuln.xml @@ -76,6 +76,46 @@ Notes: * Do not forget port variants (linux-f10-libxml2, libxml2, etc.) --> + + FreeBSD-kernel -- SMAP bypass + + + FreeBSD-kernel + 13.013.0_1 + 12.212.2_7 + + + + +

Problem Description:

+

The FreeBSD kernel enables SMAP during boot when the CPU reports that + the SMAP capability is present. Subroutines such as copyin() and + copyout() are responsible for disabling SMAP around the sections of code + that perform user memory accesses.

+

Such subroutines must handle page faults triggered when user memory is + not mapped. The kernel's page fault handler checks the validity of the + fault, and if it is indeed valid it will map a page and resume copying. + If the fault is invalid, the fault handler returns control to a + trampoline which aborts the operation and causes an error to be + returned. In this second scenario, a bug in the implementation of SMAP + support meant that SMAP would remain disabled until the thread returns + to user mode.

+

Impact:

+

This bug may be used to bypass the protections provided by SMAP for the + duration of a system call. It could thus be combined with other kernel + bugs to craft an exploit.

+ +
+ + CVE-2021-29628 + SA-21:11.smap + + + 2021-05-27 + 2021-05-27 + +
+ chromium -- multiple vulnerabilities