Bug 843139 (CVE-2012-3400) - CVE-2012-3400 kernel: udf: buffer overflow when parsing sparing table
Summary: CVE-2012-3400 kernel: udf: buffer overflow when parsing sparing table
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2012-3400
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 843140 843141 843142 843143 843144 843145 843146
Blocks: 843149
TreeView+ depends on / blocked
 
Reported: 2012-07-25 17:15 UTC by Petr Matousek
Modified: 2021-02-23 14:14 UTC (History)
23 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-08-24 13:14:01 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2012:1426 0 normal SHIPPED_LIVE Moderate: kernel security and bug fix update 2012-11-06 23:14:35 UTC
Red Hat Product Errata RHSA-2012:1491 0 normal SHIPPED_LIVE Important: kernel-rt security and bug fix update 2012-12-05 00:50:25 UTC
Red Hat Product Errata RHSA-2013:0594 0 normal SHIPPED_LIVE Low: kernel security and bug fix update 2013-03-06 02:00:10 UTC

Description Petr Matousek 2012-07-25 17:15:13 UTC
Description of problem:

A specially-crafted UDF filesystem could cause buffer overflow when parsing sparing tables in udf_load_logicalvol()@fs/udf/super.c.

The bug is fixed in upstream kernel via the following commits:


commit 1df2ae31c724e57be9d7ac00d78db8a5dabdd050
Author: Jan Kara <jack () suse cz>
Date:   Wed Jun 27 21:23:07 2012 +0200

    udf: Fortify loading of sparing table

    Add sanity checks when loading sparing table from disk to avoid accessing
    unallocated memory or writing to it.

and

commit adee11b2085bee90bd8f4f52123ffb07882d6256
Author: Jan Kara <jack () suse cz>
Date:   Wed Jun 27 20:20:22 2012 +0200

    udf: Avoid run away loop when partition table length is corrupted
    
    Check provided length of partition table so that (possibly maliciously)
    corrupted partition table cannot cause accessing data beyond current buffer.

Upstream fixes:
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=commitdiff;h=1df2ae31c724e57be9d7ac00d78db8a5dabdd050
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=commitdiff;h=adee11b2085bee90bd8f4f52123ffb07882d6256
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=57b9655d

References:
http://seclists.org/oss-sec/2012/q3/2

Comment 3 Petr Matousek 2012-07-25 17:20:07 UTC
Created kernel tracking bugs for this issue

Affects: fedora-all [bug 843146]

Comment 4 Petr Matousek 2012-07-25 17:21:29 UTC
Statement:

This issue does affect the versions of the Linux kernel as shipped with Red
Hat Enterprise Linux 5, 6 and Red Hat Enterprise MRG 2.

The Red Hat Security Response Team has rated this issue as having low security 
impact. A future kernel updates may address this issue. For additional 
information, refer to the Issue Severity Classification:
https://access.redhat.com/security/updates/classification/.

Comment 11 errata-xmlrpc 2012-11-06 18:17:57 UTC
This issue has been addressed in following products:

  Red Hat Enterprise Linux 6

Via RHSA-2012:1426 https://rhn.redhat.com/errata/RHSA-2012-1426.html

Comment 12 errata-xmlrpc 2012-12-04 19:58:34 UTC
This issue has been addressed in following products:

  MRG for RHEL-6 v.2

Via RHSA-2012:1491 https://rhn.redhat.com/errata/RHSA-2012-1491.html

Comment 13 errata-xmlrpc 2013-03-05 21:03:50 UTC
This issue has been addressed in following products:

  Red Hat Enterprise Linux 5

Via RHSA-2013:0594 https://rhn.redhat.com/errata/RHSA-2013-0594.html


Note You need to log in before you can comment on or make changes to this bug.