Blame SOURCES/flatpak-1.0.6-CVE-2019-10063.patch
|
|
f12915 |
From 77f076712949c13b9bcecc02d043cbd6de6e291e Mon Sep 17 00:00:00 2001
|
|
|
f12915 |
From: Ryan Gonzalez <rymg19@gmail.com>
|
|
|
f12915 |
Date: Mon, 25 Mar 2019 13:00:15 -0500
|
|
|
f12915 |
Subject: [PATCH] run: Only compare the lowest 32 ioctl arg bits for TIOCSTI
|
|
|
f12915 |
|
|
|
f12915 |
Closes #2782.
|
|
|
f12915 |
|
|
|
f12915 |
Closes: #2783
|
|
|
f12915 |
Approved by: alexlarsson
|
|
|
f12915 |
---
|
|
|
f12915 |
common/flatpak-run.c | 2 +-
|
|
|
f12915 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
f12915 |
|
|
|
f12915 |
diff --git a/common/flatpak-run.c b/common/flatpak-run.c
|
|
|
f12915 |
index 90b435fe..d1acd9f2 100644
|
|
|
f12915 |
--- a/common/flatpak-run.c
|
|
|
f12915 |
+++ b/common/flatpak-run.c
|
|
|
f12915 |
@@ -2147,7 +2147,7 @@ setup_seccomp (FlatpakBwrap *bwrap,
|
|
|
f12915 |
{SCMP_SYS (clone), &SCMP_A0 (SCMP_CMP_MASKED_EQ, CLONE_NEWUSER, CLONE_NEWUSER)},
|
|
|
f12915 |
|
|
|
f12915 |
/* Don't allow faking input to the controlling tty (CVE-2017-5226) */
|
|
|
f12915 |
- {SCMP_SYS (ioctl), &SCMP_A1 (SCMP_CMP_EQ, (int) TIOCSTI)},
|
|
|
f12915 |
+ {SCMP_SYS (ioctl), &SCMP_A1 (SCMP_CMP_MASKED_EQ, 0xFFFFFFFFu, (int) TIOCSTI)},
|
|
|
f12915 |
};
|
|
|
f12915 |
|
|
|
f12915 |
struct
|
|
|
f12915 |
--
|
|
|
f12915 |
2.21.0
|
|
|
f12915 |
|