Bug 1492593 (CVE-2017-14497)

Summary: CVE-2017-14497 kernel: buffer overflow in tpacket_rcv() in net/packet/af_packet.c
Product: [Other] Security Response Reporter: Vladis Dronov <vdronov>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: airlied, ajax, bskeggs, eparis, esandeen, hdegoede, ichavero, itamar, jarodwilson, jforbes, jonathan, josef, jwboyer, kernel-maint, linville, mchehab, mjg59, ppandit, quintela, sbrivio, steved
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
A buffer overflow was discovered in tpacket_rcv() function in the Linux kernel since v4.6-rc1 through v4.13. A number of socket-related syscalls can be made to set up a configuration when each packet received by a network interface can cause writing up to 10 bytes to a kernel memory outside of a kernel buffer. This can cause unspecified kernel data corruption effects, including damage of in-memory and on-disk XFS data.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-27 10:53:21 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: 1492594, 1492602    
Bug Blocks: 1486438    

Description Vladis Dronov 2017-09-18 09:34:03 UTC
A buffer overflow was discovered in tpacket_rcv() function in the Linux kernel since v4.6-rc1 through v4.13. A number of socket-related syscalls can be made to set up a configuration when each packet received by a network interface can cause writing up to 10 bytes to a kernel memory outside of a kernel buffer. This can cause unspecified kernel data corruption effects, including damage of in-memory and on-disk XFS data.

References:

https://marc.info/?l=linux-kernel&m=150394500728906&w=2

https://marc.info/?t=150394517700001&r=1&w=2

http://seclists.org/oss-sec/2017/q3/476

A kernel patch:

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=edbd58be15a957f6a760c4a514cd475217eb97fd

Comment 1 Vladis Dronov 2017-09-18 09:35:02 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 1492594]

Comment 3 Vladis Dronov 2017-09-18 09:50:34 UTC
Statement:

This issue does not affect the versions of the Linux kernel as shipped with Red Hat Enterprise Linux 5, 6, 7 and MRG-2 as the code with the flaw is not present in this product.