Bug 1623610 (CVE-2018-6554) - CVE-2018-6554 kernel: irda: Memory leak caused by repeated binds of irda socket
Summary: CVE-2018-6554 kernel: irda: Memory leak caused by repeated binds of irda socket
Keywords:
Status: CLOSED NOTABUG
Alias: CVE-2018-6554
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:
Depends On:
Blocks: 1623611
TreeView+ depends on / blocked
 
Reported: 2018-08-29 18:02 UTC by Pedro Sampaio
Modified: 2021-02-16 23:08 UTC (History)
50 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
A memory leak in the irda_bind function in net/irda/af_irda.c in the Linux kernel, through 4.16, allows local users to cause a denial of service due to a memory consumption by repeatedly binding an AF_IRDA socket.
Clone Of:
Environment:
Last Closed: 2018-08-30 12:19:10 UTC
Embargoed:


Attachments (Terms of Use)

Description Pedro Sampaio 2018-08-29 18:02:14 UTC
The irda_bind() function allocates memory for self->ias_obj without
checking to see if the socket is already bound. A userspace process
could repeatedly bind the socket, have each new object added into the
LM-IAS database, and lose the reference to the old object assigned to
the socket to exhaust memory resources.

References:

https://seclists.org/oss-sec/2018/q3/212

Suggested patches:

https://www.spinics.net/lists/stable/msg255033.html

https://www.spinics.net/lists/stable/msg255029.html

Comment 5 Vladis Dronov 2018-08-30 12:19:10 UTC
Notes:

None of the Red Hat's products are vulnerable to this flaw.


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