From 2154c34815631b163c2dbc6d34ed1a4925339017 Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Sun, 3 May 2009 11:24:54 +0200 Subject: [PATCH] Revert "Added a Patch to fix a local privilege escalation in udev." This reverts commit 835b323eff9ae1acea77d9f372260d5ce7fcb385. --- lfs/udev | 1 - src/patches/udev-CVE-2009-1186.patch | 20 -------------------- 2 files changed, 21 deletions(-) delete mode 100644 src/patches/udev-CVE-2009-1186.patch diff --git a/lfs/udev b/lfs/udev index 4d14fdee0e..4667ff4a68 100644 --- a/lfs/udev +++ b/lfs/udev @@ -81,7 +81,6 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) @$(PREBUILD) @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar jxf $(DIR_DL)/$(DL_FILE) cd $(DIR_APP) && patch -Np1 -i $(DIR_SRC)/src/patches/udev-096-netif_rename.patch - cd $(DIR_APP) && patch -Np1 -i $(DIR_SRC)/src/patches/udev-CVE-2009-1186.patch ifeq "$(LFS_PASS)" "install" cd $(DIR_APP) && make DESTDIR=/install/initrd sbindir=/sbin udevdir=/dev cd $(DIR_APP) && make DESTDIR=/install/initrd sbindir=/sbin udevdir=/dev install diff --git a/src/patches/udev-CVE-2009-1186.patch b/src/patches/udev-CVE-2009-1186.patch deleted file mode 100644 index 56332ca64c..0000000000 --- a/src/patches/udev-CVE-2009-1186.patch +++ /dev/null @@ -1,20 +0,0 @@ ---- udev-141/udev/lib/libudev-util.c.CVE-2009-1186 2009-04-08 09:04:26.000000000 -0400 -+++ udev-141/udev/lib/libudev-util.c 2009-04-15 13:25:10.000000000 -0400 -@@ -9,6 +9,7 @@ - * version 2.1 of the License, or (at your option) any later version. - */ - -+#include - #include - #include - #include -@@ -103,6 +104,9 @@ int util_log_priority(const char *priori - - size_t util_path_encode(char *s, size_t len) - { -+ if (len == 0 || len > (SIZE_MAX - 1) / 4) -+ return 0; -+ - char t[(len * 4)+1]; - size_t i, j; - -- 2.39.2