Bug 1213322 (CVE-2015-3331)

Summary: CVE-2015-3331 Kernel: crypto: buffer overruns in RFC4106 implementation using AESNI
Product: [Other] Security Response Reporter: Prasad J Pandit <ppandit>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: ajb, aquini, arm-mgr, bhu, blc, carnil, deisenst2, dhoward, fhrbata, fweimer, gansalmon, iboverma, itamar, jforbes, jkacur, joelsmith, jonathan, jross, jwboyer, kernel-maint, kernel-mgr, knoha, lgoncalv, madhu.chinakonda, matt, mchehab, mcressma, mlangsdo, nmurray, omoris, plougher, pmatouse, rt-maint, rvrbovsk, sauchter, toracat, williams
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
A buffer overflow flaw was found in the way the Linux kernel's Intel AES-NI instructions optimized version of the RFC4106 GCM mode decryption functionality handled fragmented packets. A remote attacker could use this flaw to crash, or potentially escalate their privileges on, a system over a connection with an active AES-GCM mode IPSec security association.
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-08 02:40:54 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 1212178, 1213329, 1213330, 1213331, 1213332, 1213333, 1213334, 1213336, 1213337, 1220341    
Bug Blocks: 1211861    

Description Prasad J Pandit 2015-04-20 10:43:10 UTC
Linux kernel built with the Intel AES-NI instructions for AES algorithm support
(CONFIG_CRYPTO_AES_NI_INTEL) is vulnerable to a memory corruption issue. It could occur when using the Intel AES-NI instruction to decrypt fragmented network packets.

An unprivileged remote user could use this flaw to crash the system (denial of service) or, potentially, escalate their privileges on a system over a connection with an active AEC-GCM mode IPSec security association.

Upstream fix:
-------------
  -> https://git.kernel.org/linus/ccfe8c3f7e52ae83155cb038753f4c75b774ca8a

Reference:
----------
  -> http://www.openwall.com/lists/oss-security/2015/04/18/1
  -> https://software.intel.com/en-us/articles/intel-advanced-encryption-standard-instructions-aes-ni

Comment 1 Prasad J Pandit 2015-04-20 10:47:44 UTC
Statement:

This issue does not affect the version of the kernel package as shipped with
Red Hat Enterprise Linux 5.

This issue affects the versions of Linux kernel as shipped with
Red Hat Enterprise Linux 6, 7 and Red Hat Enterprise MRG 2. Future kernel updates
for Red Hat Enterprise Linux 6 may address this issue.

Comment 5 Prasad J Pandit 2015-04-20 10:53:49 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 1213337]

Comment 10 errata-xmlrpc 2015-05-12 15:44:04 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2015:0981 https://rhn.redhat.com/errata/RHSA-2015-0981.html

Comment 11 Akemi Yagi 2015-05-12 18:10:00 UTC
(In reply to errata-xmlrpc from comment #10)
> This issue has been addressed in the following products:
> 
>   Red Hat Enterprise Linux 7
> 
> Via RHSA-2015:0981 https://rhn.redhat.com/errata/RHSA-2015-0981.html

Is that a typo? Maybe it is supposed to be:

https://rhn.redhat.com/errata/RHSA-2015-0987.html

Comment 12 errata-xmlrpc 2015-05-12 18:49:38 UTC
This issue has been addressed in the following products:

  MRG for RHEL-6 v.2

Via RHSA-2015:0989 https://rhn.redhat.com/errata/RHSA-2015-0989.html

Comment 13 errata-xmlrpc 2015-05-12 19:21:58 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2015:0987 https://rhn.redhat.com/errata/RHSA-2015-0987.html

Comment 14 Florian Weimer 2015-05-13 08:49:18 UTC
(In reply to Akemi Yagi from comment #11)
> (In reply to errata-xmlrpc from comment #10)
> > This issue has been addressed in the following products:
> > 
> >   Red Hat Enterprise Linux 7
> > 
> > Via RHSA-2015:0981 https://rhn.redhat.com/errata/RHSA-2015-0981.html
> 
> Is that a typo?

It's not a typo.  RHSA-2015-0981 addresses this vulnerability for the kernel-rt package:

<https://www.redhat.com/archives/rhsa-announce/2015-May/msg00008.html>

Currently, errata pages which document changes to Red Hat Enterprise Linux 7 only (and not other versions of Red Hat Enterprise Linux) do not appear under rhn.redhat.com URLs.

Comment 18 David Eisenstein 2015-06-07 22:03:01 UTC
Doesn't this bug also affect RHEL 6 kernel?  I see the same error lines in 
arch/x86/crypto/aesni-intel_glue.c in kernel version kernel-2.6.32-504.16.2.el6 .

Comment 19 Petr Matousek 2015-06-08 07:16:10 UTC
(In reply to David Eisenstein from comment #18)
> Doesn't this bug also affect RHEL 6 kernel?  I see the same error lines in 
> arch/x86/crypto/aesni-intel_glue.c in kernel version
> kernel-2.6.32-504.16.2.el6 .

It does. See comment 1.

Comment 20 errata-xmlrpc 2015-06-09 14:50:48 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 6

Via RHSA-2015:1081 https://rhn.redhat.com/errata/RHSA-2015-1081.html

Comment 21 errata-xmlrpc 2015-06-30 13:59:10 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 6.5 EUS - Server and Compute Node Only

Via RHSA-2015:1199 https://rhn.redhat.com/errata/RHSA-2015-1199.html