Bug 1743604 (CVE-2010-5332)

Summary: CVE-2010-5332 kernel: out of bounds array access in drivers/net/mlx4/port.c
Product: [Other] Security Response Reporter: Dhananjay Arunesh <darunesh>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED WONTFIX QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: acaringi, airlied, bhu, blc, brdeoliv, bskeggs, dhoward, dvlasenk, esammons, fhrbata, hdegoede, hkrzesin, iboverma, ichavero, itamar, jarodwilson, jeremy, jforbes, jglisse, jlelli, john.j5live, jonathan, josef, jross, jshortt, jstancek, jwboyer, kernel-maint, kernel-mgr, labbott, lgoncalv, linville, masami256, matt, mchehab, mcressma, mjg59, mlangsdo, nmurray, plougher, rt-maint, rvrbovsk, steved, williams, wmealing, yozone
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
An out-of-bounds read flaw was found in the mix4 Linux kernel driver. Registering the last of a VLAN or MAC address with no free entries may cause an out-of-bounds read into the next page of memory, causing a panic if the page is not available. The command can only be executed by a local privileged user with CAP_NET_ADMIN or CAP_SYS_ADMIN capabilities. The largest threat from this vulnerabilty is availability to the system.
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-02-19 08:09:34 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: 1743605    
Bug Blocks: 1743606    

Description Dhananjay Arunesh 2019-08-20 09:55:28 UTC
A vulnerability was found in the Linux kernel, an out of bounds array access happened in drivers/net/mlx4/port.c. When searching for a free entry in either mlx4_register_vlan() or mlx4_register_mac(), and there is no free entry, the loop terminates without updating the local variable free thus causing out of array bounds access.

Adding VLAN or MAC addresses are administrative actions or require CAP_NET_ADMIN capabilities to execute these instructions, regular local users can not trigger this flaw.

Reference:
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=0926f91083f34d047abc74f1ca4fa6a9c161f7db
https://github.com/torvalds/linux/commit/0926f91083f34d047abc74f1ca4fa6a9c161f7db
https://mirrors.edge.kernel.org/pub/linux/kernel/v2.6/ChangeLog-2.6.37

Comment 1 Dhananjay Arunesh 2019-08-20 09:56:03 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 1743605]

Comment 2 Justin M. Forbes 2019-08-20 12:56:28 UTC
This was fixed for Fedora in 2.6.37, and never present in any currently supported version of Fedora.

Comment 5 Product Security DevOps Team 2020-02-19 08:09:34 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-2010-5332