Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1680728
| From | Greg KH <greg@kroah.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: 'skb' buffer address information leakage |
| Date | 2017-07-04 09:50 +0200 |
| Message-ID | <tZqKS-5ky-7@gated-at.bofh.it> (permalink) |
| References | <tZopI-3Hm-9@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Tue, Jul 04, 2017 at 01:12:18PM +0800, Dison River wrote: > Hi all: > I'd found several address leaks of "skb" buffer.When i have a > arbitrary address write vulnerability in kernel(enabled kASLR),I can > use skb's address find sk_destruct's address and overwrite it. And > then,invoke close(sock_fd) function can trigger the > shellcode(sk_destruct func). > > In kernel 4.12-rc7 > drivers/net/irda/vlsi_ir.c:326 seq_printf(seq, "skb=%p > data=%p hw=%p\n", rd->skb, rd->buf, rd->hw); Irda doesn't even work, and will crash, so it's a bit hard to see this as a "leakage" :) I'm going to be ripping irda out soon anyway, so this isn't a real issue. > drivers/net/ethernet/netronome/nfp/nfp_net_debugfs.c:167 > seq_printf(file, " frag=%p", skb); > drivers/net/wireless/ath/wil6210/debugfs.c:926 seq_printf(s, > " SKB = 0x%p\n", skb); debugfs is by nature, root-only access, so the potential for issues here is lower than "any user can get this info". That being said, patches for these are always appreciated. I also need to respin my "turn %p pointers off" patchset to prevent future stuff like this from happening. I want to get to that after 4.13-rc1 is out. thanks, greg k-h
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
'skb' buffer address information leakage Dison River <pwn2river@gmail.com> - 2017-07-04 07:20 +0200 Re: 'skb' buffer address information leakage Jakub Kicinski <jakub.kicinski@netronome.com> - 2017-07-04 07:30 +0200 Re: 'skb' buffer address information leakage Greg KH <greg@kroah.com> - 2017-07-04 09:50 +0200 Re: 'skb' buffer address information leakage Stephen Hemminger <stephen@networkplumber.org> - 2017-07-04 20:20 +0200
csiph-web