Skip to contentSkip to conversation

atm:idt77252: Fix a kernel address leakage in idt77252

PATCH In review Fuqian Huang 2 participants 4 messages Apr 16, 2019 – Apr 17, 2019 Stable branch

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 atm:idt77252: Fix a kernel address leakage in idt77252

From: Fuqian Huang <[email protected]>

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

---
 drivers/atm/idt77252.c | 2 --
 1 file changed, 2 deletions(-)
drivers/atm/idt77252.c +0 -2
index 47f3c4a..76e7736 100644
@@ -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

maintainer
#1 lore raw
Quoted 3 lines · Fuqian Huang

From: Fuqian Huang <[email protected]>

commit c0a68944b036ee4856658c6a5c2c4cc030a1c587 upstream

I do not see that git commit id in Linus's tree, are you sure it is there?

And your email seems to be messing up the cc: line, please fix that up.

thanks,

greg k-h

#2 lore raw

uh, it seems that i misunderstood the manual.
If i just submit a patch to fix a bug in 4.14 which not exists in upstream, need i add a commit-id line to the mail body? It is ok that I remove the commitid line and resend the patch? Sorry about that. This my first patch submit to stable tree.

Greg KH <[email protected]> 於 2019年4月16日週二 下午8:57寫道:

Quoted 14 lines · Fuqian Huang
Quoted 3 lines

From: Fuqian Huang <[email protected]>

commit c0a68944b036ee4856658c6a5c2c4cc030a1c587 upstream

I do not see that git commit id in Linus's tree, are you sure it is there?

And your email seems to be messing up the cc: line, please fix that up.

thanks,

greg k-h

maintainer
#3 lore raw
Quoted 3 lines · Fuqian Huang

uh, it seems that i misunderstood the manual.
If i just submit a patch to fix a bug in 4.14 which not exists in upstream, need i add a commit-id line to the mail body?

You need to explain in great detail _why_ the commit is not needed in Linus's tree for me to be able to accept the patch.

Quoted 1 line

It is ok that I remove the commitid line and resend the patch?

Yes please, and add lots of text to the changelog area explaining why this is only needed in this one specific kernel tree.

thanks,

greg k-h