CVE-2012-3400: Buffer Overflow
Description of problem:
A specially-crafted UDF filesystem could cause buffer overflow when parsing sparing tables in udfloadlogicalvol()@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
Other sources
Heap-based buffer overflow in the udfloadlogicalvol function in fs/udf/super.c in the Linux kernel before 3.4.5 allows remote attackers to cause a denial of service (system crash) or possibly have unspecified other impact via a crafted UDF filesystem.
— Launchpad
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2012-3400?
CVE-2012-3400 is classified as a medium severity vulnerability due to the potential for buffer overflow leading to denial of service.
How do I fix CVE-2012-3400?
To fix CVE-2012-3400, you should update to a version of the Linux kernel that is greater than 3.0.37, 3.1, 3.2.23, or 3.4.
What systems are affected by CVE-2012-3400?
CVE-2012-3400 affects multiple versions of the Linux kernel and Ubuntu Linux versions 10.04, 11.04, and 12.04.
What type of vulnerability is CVE-2012-3400?
CVE-2012-3400 is a buffer overflow vulnerability caused by improper handling of specially-crafted UDF files.
Is CVE-2012-3400 still a concern for current Linux distributions?
While CVE-2012-3400 was a concern in older Linux kernel versions, most modern distributions have applied necessary patches, reducing its relevance today.