Bug 1272132 - kernel: Heap corruption in debug_read_tlb
Summary: kernel: Heap corruption in debug_read_tlb
Keywords:
Status: CLOSED NOTABUG
Alias: None
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: 1272141
Blocks: 1272140
TreeView+ depends on / blocked
 
Reported: 2015-10-15 14:37 UTC by Adam Mariš
Modified: 2021-02-17 04:50 UTC (History)
32 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-12-03 13:36:12 UTC
Embargoed:


Attachments (Terms of Use)

Description Adam Mariš 2015-10-15 14:37:30 UTC
A vulnerability in debug_read_tlb() function was found leading to possible buffer overflow. The debug_read_tlb() uses the sprintf() functions directly on the buffer allocated by buf = kmalloc(count), without taking into account the size of the buffer, with the consequence corrupting the heap, depending on the count requested by the user.

Upstream patch:

https://patchwork.kernel.org/patch/6853351/

http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=e203db293863fa15b4b1917d4398fb5bd63c4e88

CVE request:

http://seclists.org/oss-sec/2015/q4/82

Comment 1 Adam Mariš 2015-10-15 14:43:31 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 1272141]

Comment 2 Josh Boyer 2015-10-15 16:52:25 UTC
As far as I'm aware, this is only present in the omap-iommu-debug.c file.  That limits it to:

1) 32-bit ARM
2) The omap2plus machine type for 32-bit ARM
3) Only built if the OMAP_IOMMU_DEBUG option is enabled.

Comment 3 Vladis Dronov 2015-12-03 13:36:12 UTC
Statement:

This issue does not affect the Linux kernel packages as shipped with Red Hat Enterprise Linux 5, 6, 7 and MRG-2 as the code introduced the flaw is not present in these products.


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