[linux] 01/04: regulator: core: Fix regualtor_ena_gpio_free not to access pin after freeing (CVE-2014-9940)
debian-kernel at lists.debian.org
debian-kernel at lists.debian.org
Thu Jul 27 20:27:19 UTC 2017
This is an automated email from the git hooks/post-receive script.
carnil pushed a commit to branch jessie-security
in repository linux.
commit 5100d3f971135ccacb91cbb99d5c1c2e75a6ba61
Author: Salvatore Bonaccorso <carnil at debian.org>
Date: Thu Jul 27 22:00:43 2017 +0200
regulator: core: Fix regualtor_ena_gpio_free not to access pin after freeing (CVE-2014-9940)
---
debian/changelog | 7 ++++++
...ore-Fix-regualtor_ena_gpio_free-not-to-ac.patch | 27 ++++++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 35 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 02519d7..6c5c6c1 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+linux (3.16.43-2+deb8u3) UNRELEASED; urgency=medium
+
+ * regulator: core: Fix regualtor_ena_gpio_free not to access pin after
+ freeing (CVE-2014-9940)
+
+ -- Salvatore Bonaccorso <carnil at debian.org> Thu, 27 Jul 2017 22:02:24 +0200
+
linux (3.16.43-2+deb8u2) jessie-security; urgency=high
* Revert previous fixes for CVE-2017-1000364 (Closes: #865303)
diff --git a/debian/patches/bugfix/all/regulator-core-Fix-regualtor_ena_gpio_free-not-to-ac.patch b/debian/patches/bugfix/all/regulator-core-Fix-regualtor_ena_gpio_free-not-to-ac.patch
new file mode 100644
index 0000000..d38678c
--- /dev/null
+++ b/debian/patches/bugfix/all/regulator-core-Fix-regualtor_ena_gpio_free-not-to-ac.patch
@@ -0,0 +1,27 @@
+From: Seung-Woo Kim <sw0312.kim at samsung.com>
+Date: Thu, 4 Dec 2014 19:17:17 +0900
+Subject: regulator: core: Fix regualtor_ena_gpio_free not to access pin after
+ freeing
+Origin: https://git.kernel.org/linus/60a2362f769cf549dc466134efe71c8bf9fbaaba
+Bug-Debian-Security: https://security-tracker.debian.org/tracker/CVE-2014-9940
+
+After freeing pin from regulator_ena_gpio_free, loop can access
+the pin. So this patch fixes not to access pin after freeing.
+
+Signed-off-by: Seung-Woo Kim <sw0312.kim at samsung.com>
+Signed-off-by: Mark Brown <broonie at kernel.org>
+---
+ drivers/regulator/core.c | 2 ++
+ 1 file changed, 2 insertions(+)
+
+--- a/drivers/regulator/core.c
++++ b/drivers/regulator/core.c
+@@ -1709,6 +1709,8 @@ static void regulator_ena_gpio_free(stru
+ gpio_free(pin->gpio);
+ list_del(&pin->list);
+ kfree(pin);
++ rdev->ena_pin = NULL;
++ return;
+ } else {
+ pin->request_count--;
+ }
diff --git a/debian/patches/series b/debian/patches/series
index 5e79b32..f9fbd96 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -712,6 +712,7 @@ bugfix/all/ipv6-dccp-do-not-inherit-ipv6_mc_list-from-parent.patch
bugfix/all/ipv6-fix-out-of-bound-writes-in-__ip6_append_data.patch
bugfix/all/mm-larger-stack-guard-gap-between-vmas.patch
bugfix/all/mm-fix-new-crash-in-unmapped_area_topdown.patch
+bugfix/all/regulator-core-Fix-regualtor_ena_gpio_free-not-to-ac.patch
# Fix ABI changes
debian/of-fix-abi-changes.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/kernel/linux.git
More information about the Kernel-svn-changes
mailing list