stable.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 4.14] atm:idt77252: Fix a kernel address leakage in idt77252
@ 2019-04-16 12:37 Fuqian Huang
  2019-04-16 12:46 ` Greg KH
  0 siblings, 1 reply; 9+ messages in thread
From: Fuqian Huang @ 2019-04-16 12:37 UTC (permalink / raw)
  Cc: Fuqian Huang, # v4 . 14 . x

From: Fuqian Huang <huangfq.daxian@gmail.com>

commit c0a68944b036ee4856658c6a5c2c4cc030a1c587 upstream

Outputting kernel addresses will reveal the locations of kernel code
and data. And there is no need to print the address of
function idt77252_init in idt77252_init.
This case is similar to CVE-2018-7273[1].
Just remove the print statement.

[1] https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-7273

Cc: <Stable@vger.kernel.org> # v4.14.x
Signed-off-by: Fuqian Huang <huangfq.daxian@gmail.com>
---
 drivers/atm/idt77252.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/atm/idt77252.c b/drivers/atm/idt77252.c
index 47f3c4a..76e7736 100644
--- a/drivers/atm/idt77252.c
+++ b/drivers/atm/idt77252.c
@@ -3743,8 +3743,6 @@ static int __init idt77252_init(void)
 {
 	struct sk_buff *skb;

-	printk("%s: at %p\n", __func__, idt77252_init);
-
 	if (sizeof(skb->cb) < sizeof(struct atm_skb_data) +
 			      sizeof(struct idt77252_skb_prv)) {
 		printk(KERN_ERR "%s: skb->cb is too small (%lu < %lu)\n",
--
2.11.0


^ permalink raw reply related	[flat|nested] 9+ messages in thread
* [PATCH 4.14] atm:idt77252: Fix a kernel address leakage in idt77252
@ 2019-04-18  7:17 Fuqian Huang
  2019-04-18  7:42 ` Greg KH
  0 siblings, 1 reply; 9+ messages in thread
From: Fuqian Huang @ 2019-04-18  7:17 UTC (permalink / raw)
  Cc: Stable, Fuqian Huang

From: Fuqian Huang <huangfq.daxian@gmail.com>

As there is still no hash for %p to print the address in linux 4.14,
the address of function idt77252_init will be printed to syslog.
Outputting kernel addresses will reveal the locations of kernel code
and data. This case is similar to CVE-2018-7273[1].

Also, there is no need to print the address of
function idt77252_init in idt77252_init.
Just remove the print statement.

[1] https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-7273

Cc: <Stable@vger.kernel.org> # v4.14+
Signed-off-by: Fuqian Huang <huangfq.daxian@gmail.com>
---
 drivers/atm/idt77252.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/atm/idt77252.c b/drivers/atm/idt77252.c
index 47f3c4a..76e7736 100644
--- a/drivers/atm/idt77252.c
+++ b/drivers/atm/idt77252.c
@@ -3743,8 +3743,6 @@ static int __init idt77252_init(void)
 {
 	struct sk_buff *skb;

-	printk("%s: at %p\n", __func__, idt77252_init);
-
 	if (sizeof(skb->cb) < sizeof(struct atm_skb_data) +
 			      sizeof(struct idt77252_skb_prv)) {
 		printk(KERN_ERR "%s: skb->cb is too small (%lu < %lu)\n",
--
2.11.0


^ permalink raw reply related	[flat|nested] 9+ messages in thread
* [PATCH 4.14] atm:idt77252: Fix a kernel address leakage in idt77252
@ 2019-04-16 12:31 Fuqian Huang
  0 siblings, 0 replies; 9+ messages in thread
From: Fuqian Huang @ 2019-04-16 12:31 UTC (permalink / raw)
  Cc: Fuqian Huang, # v4 . 14 . x

From: Fuqian Huang <huangfq.daxian@gmail.com>

commit c0a68944b036ee4856658c6a5c2c4cc030a1c587 upstream

Outputting kernel addresses will reveal the locations of kernel code
and data. And there is no need to print the address of
function idt77252_init in idt77252_init.
This case is similar to CVE-2018-7273[1].
Just remove the print statement.

[1] https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-7273

Cc: <Stable@vger.kernel.org> # v4.14.x
Signed-off-by: Fuqian Huang <huangfq.daxian@gmail.com>
---
 drivers/atm/idt77252.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/atm/idt77252.c b/drivers/atm/idt77252.c
index 47f3c4a..76e7736 100644
--- a/drivers/atm/idt77252.c
+++ b/drivers/atm/idt77252.c
@@ -3743,8 +3743,6 @@ static int __init idt77252_init(void)
 {
 	struct sk_buff *skb;

-	printk("%s: at %p\n", __func__, idt77252_init);
-
 	if (sizeof(skb->cb) < sizeof(struct atm_skb_data) +
 			      sizeof(struct idt77252_skb_prv)) {
 		printk(KERN_ERR "%s: skb->cb is too small (%lu < %lu)\n",
--
2.11.0


^ permalink raw reply related	[flat|nested] 9+ messages in thread
* [PATCH 4.14] atm:idt77252: Fix a kernel address leakage in idt77252
@ 2019-04-16  7:11 Fuqian Huang
  2019-04-16  8:57 ` Greg KH
  0 siblings, 1 reply; 9+ messages in thread
From: Fuqian Huang @ 2019-04-16  7:11 UTC (permalink / raw)
  Cc: stable, Fuqian Huang

Outputting kernel addresses will reveal the locations of kernel code
and data. And there is no need to print the address of 
function idt77252_init in idt77252_init. 
This case is similar to CVE-2018-7273[1].
Just remove the print statement.

[1] https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-7273

Signed-off-by: Fuqian Huang <huangfq.daxian@gmail.com>
---
 drivers/atm/idt77252.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/atm/idt77252.c b/drivers/atm/idt77252.c
index 47f3c4a..76e7736 100644
--- a/drivers/atm/idt77252.c
+++ b/drivers/atm/idt77252.c
@@ -3743,8 +3743,6 @@ static int __init idt77252_init(void)
 {
 	struct sk_buff *skb;
 
-	printk("%s: at %p\n", __func__, idt77252_init);
-
 	if (sizeof(skb->cb) < sizeof(struct atm_skb_data) +
 			      sizeof(struct idt77252_skb_prv)) {
 		printk(KERN_ERR "%s: skb->cb is too small (%lu < %lu)\n",
-- 
2.11.0


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2019-04-18  7:42 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-16 12:37 [PATCH 4.14] atm:idt77252: Fix a kernel address leakage in idt77252 Fuqian Huang
2019-04-16 12:46 ` Greg KH
2019-04-16 14:27   ` Fuqian Huang
2019-04-17  6:14     ` Greg KH
  -- strict thread matches above, loose matches on Subject: below --
2019-04-18  7:17 Fuqian Huang
2019-04-18  7:42 ` Greg KH
2019-04-16 12:31 Fuqian Huang
2019-04-16  7:11 Fuqian Huang
2019-04-16  8:57 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).