Bug 1159441 (CVE-2019-19241) - VUL-0: CVE-2019-19241: kernel-source: privilege escalation via io_uring offload of sendmsg() onto kernel thread with kernel creds
Summary: VUL-0: CVE-2019-19241: kernel-source: privilege escalation via io_uring offlo...
Status: RESOLVED INVALID
Alias: CVE-2019-19241
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents (show other bugs)
Version: unspecified
Hardware: Other Other
: P5 - None : Normal
Target Milestone: ---
Assignee: E-mail List
QA Contact: Security Team bot
URL: https://smash.suse.de/issue/249213/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-12-18 09:12 UTC by Alexandros Toptsoglou
Modified: 2024-06-25 14:12 UTC (History)
5 users (show)

See Also:
Found By: Security Response Team
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandros Toptsoglou 2019-12-18 09:12:25 UTC
CVE-2019-19241

In the Linux kernel before 5.4.2, the io_uring feature leads to requests that
inadvertently have UID 0 and full capabilities, aka CID-181e448d8709. This is
related to fs/io-wq.c, fs/io_uring.c, and net/socket.c. For example, an attacker
can bypass intended restrictions on adding an IPv4 address to the loopback
interface. This occurs because IORING_OP_SENDMSG operations, although requested
in the context of an unprivileged user, are sometimes performed by a kernel
worker thread without considering that context.

References:
https://bugs.chromium.org/p/project-zero/issues/detail?id=1975
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2019-19241
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-19241
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=181e448d8709e517c9c7b523fcd209f24eb38ca7
https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.4.2
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d69e07793f891524c6bbf1e75b9ae69db4450953
Comment 2 Alexandros Toptsoglou 2019-12-18 13:02:28 UTC
io_uring  introduced in version 5.1 [0]
This issue affects only SLE15-SP2. The fixes[1][2] are already contained in the branch 15-SP2. Please update the references.

[0]https://github.com/torvalds/linux/commit/2b188cc1bb857a9d4701ae59aa7768b5124e262e
[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=181e448d8709
[2] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d69e07793f89
Comment 3 Alexandros Toptsoglou 2019-12-18 13:48:53 UTC
closing
Comment 4 Takashi Iwai 2019-12-18 14:48:22 UTC
OK, I'll update the patch references.  Thanks.