Bug 1678423 (CVE-2019-3837) - CVE-2019-3837 kernel: memory leak in tcp_recvmsg() with NET_DMA
Summary: CVE-2019-3837 kernel: memory leak in tcp_recvmsg() with NET_DMA
Status: NEW
Alias: CVE-2019-3837
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard: impact=moderate,public=20190403,repor...
Keywords: Security
Depends On: 1678168
Blocks: 1678424
TreeView+ depends on / blocked
 
Reported: 2019-02-18 17:59 UTC by Pedro Sampaio
Modified: 2019-06-08 23:52 UTC (History)
47 users (show)

(edit)
It was found that the net_dma code in tcp_recvmsg() in the RHEL6 kernel is thread-unsafe. So an unprivileged multi-threaded userspace application calling recvmsg() for the same network socket in parallel executed on ioatdma-enabled hardware with net_dma enabled can leak the memory, crash the host leading to a denial of service or cause a random memory corruption.
Clone Of:
(edit)
Last Closed:


Attachments (Terms of Use)

Description Pedro Sampaio 2019-02-18 17:59:16 UTC
It was found that the net_dma code in tcp_recvmsg() in the RHEL6 kernel is thread-unsafe. So an unprivileged multi-threaded userspace application calling recvmsg() for the same network socket in parallel executed on ioatdma-enabled hardware with net_dma enabled can leak the memory, crash the host leading to a denial-of-service, or cause a random memory corruption.

References:

https://seclists.org/oss-sec/2019/q2/7

https://bugs.openvz.org/browse/OVZ-7080

An upstream fix:

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

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

Comment 1 Vladis Dronov 2019-02-19 10:30:28 UTC
Acknowledgements:

Name: Vasily Averin (Virtuozzo Kernel Team)


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