Bug 2049302 (CVE-2021-46659)

Summary: CVE-2021-46659 mariadb: Crash executing query with VIEW, aggregate and subquery
Product: [Other] Security Response Reporter: Todd Cullum <tcullum>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: caswilli, damien.ciabrini, databases-maint, dbecker, dciabrin, gzaronik, hhorak, jburrell, jjoyce, jorton, jschluet, kaycoth, lhh, ljavorsk, lpeer, mbayer, mburns, mkocka, mmuzila, mschorm, sclewis, slinaber, SpikeFedora
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: mariadb 10.2.42, mariadb 10.3.33, mariadb 10.4.23, mariadb 10.5.14, mariadb 10.6.6, mariadb 10.7.2 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-11-25 16:56:03 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2055709, 2055710, 2055711, 2055712, 2055713, 2055714, 2068217, 2068219, 2078334, 2090650, 2090651, 2095292, 2096273, 2101781, 2107051, 2107053    
Bug Blocks: 2049295    

Description Todd Cullum 2022-02-01 21:29:26 UTC
MariaDB before 10.7.2 allows an application crash because it does not recognize
that SELECT_LEX::nest_level is local to each VIEW.

Reference:
https://jira.mariadb.org/browse/MDEV-25631
https://bugzilla.suse.com/1195339

Comment 1 juneau 2022-02-03 16:29:27 UTC
Marking services-management-platform notaffected. Affected code is not present.
Marking openshift-hosted-osd3 affected/ooss.

Comment 2 Mauro Matteo Cascella 2022-02-17 14:57:52 UTC
Upstream patch:
http://lists.askmonty.org/pipermail/commits/2021-May/014606.html

Comment 3 Mauro Matteo Cascella 2022-02-17 15:00:05 UTC
Created mariadb tracking bugs for this issue:

Affects: fedora-all [bug 2055710]


Created mariadb:10.3/mariadb tracking bugs for this issue:

Affects: fedora-all [bug 2055709]


Created mariadb:10.4/mariadb tracking bugs for this issue:

Affects: fedora-all [bug 2055711]


Created mariadb:10.5/mariadb tracking bugs for this issue:

Affects: fedora-all [bug 2055712]


Created mariadb:10.6/mariadb tracking bugs for this issue:

Affects: fedora-all [bug 2055713]


Created mariadb:10.7/mariadb tracking bugs for this issue:

Affects: fedora-all [bug 2055714]

Comment 5 errata-xmlrpc 2022-07-28 16:05:08 UTC
This issue has been addressed in the following products:

  Red Hat Software Collections for Red Hat Enterprise Linux 7

Via RHSA-2022:5759 https://access.redhat.com/errata/RHSA-2022:5759

Comment 6 errata-xmlrpc 2022-08-02 10:08:44 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2022:5826 https://access.redhat.com/errata/RHSA-2022:5826

Comment 7 errata-xmlrpc 2022-08-09 12:23:46 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2022:5948 https://access.redhat.com/errata/RHSA-2022:5948

Comment 8 errata-xmlrpc 2022-09-01 14:17:32 UTC
This issue has been addressed in the following products:

  Red Hat Software Collections for Red Hat Enterprise Linux 7

Via RHSA-2022:6306 https://access.redhat.com/errata/RHSA-2022:6306

Comment 9 errata-xmlrpc 2022-09-13 09:41:35 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2022:6443 https://access.redhat.com/errata/RHSA-2022:6443

Comment 10 Product Security DevOps Team 2022-11-25 16:56:00 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2021-46659