-
- Posts: 9
- Joined: Fri May 02, 2014 6:00 am
Dirty Cow bug fix in place?
Is there a fix for the 'dirty cow' bug in the Raspian code base? I have several devices running and this issue sounds like a serious one but I was not sure where I should look to find out about the latest patches. If you know where I can look for those please just let me know. Thanks.
- DougieLawson
- Posts: 40547
- Joined: Sun Jun 16, 2013 11:19 pm
- Location: A small cave in deepest darkest Basingstoke, UK
- Contact: Website Twitter
Re: Dirty Cow bug fix in place?
sudo rpi-update includes a commit https://github.com/raspberrypi/linux/co ... 52b94d22fb that updates the COW processing in the 4.4.26 kernel.
Any language using left-hand whitespace for syntax is ridiculous
Any DMs sent on Twitter will be answered next month.
Fake doctors - are all on my foes list.
Any requirement to use a crystal ball or mind reading will result in me ignoring your question.
Any DMs sent on Twitter will be answered next month.
Fake doctors - are all on my foes list.
Any requirement to use a crystal ball or mind reading will result in me ignoring your question.
-
- Raspberry Pi Engineer & Forum Moderator
- Posts: 6279
- Joined: Fri Jul 29, 2011 5:36 pm
- Location: The unfashionable end of the western spiral arm of the Galaxy
-
- Posts: 9
- Joined: Fri May 02, 2014 6:00 am
Re: Dirty Cow bug fix in place?
Great news, thx... time to update!
DougieLawson wrote:sudo rpi-update includes a commit https://github.com/raspberrypi/linux/co ... 52b94d22fb that updates the COW processing in the 4.4.26 kernel.
Re: Dirty Cow bug fix in place?
Hi there, can I update Raspbian Wheezy with the same command?DougieLawson wrote:sudo rpi-update includes a commit https://github.com/raspberrypi/linux/co ... 52b94d22fb that updates the COW processing in the 4.4.26 kernel.
Wheezy is 3.10.25+ kernel but Dougie commented that this fix is for 4.4.26.
-
- Posts: 25238
- Joined: Tue Mar 25, 2014 12:40 pm
- Location: Delightful Dorset
Re: Dirty Cow bug fix in place?
Wheezy is end of life, but in Wheezy the only way to update kernel / firmware is to run:miamia wrote:Hi there, can I update Raspbian Wheezy with the same command?DougieLawson wrote:sudo rpi-update includes a commit https://github.com/raspberrypi/linux/co ... 52b94d22fb that updates the COW processing in the 4.4.26 kernel.
Wheezy is 3.10.25+ kernel but Dougie commented that this fix is for 4.4.26.
Code: Select all
sudo rpi-update
Code: Select all
uname -a
The information is out there....you just have to let it in.
My other Linux machine is a ChromeBox
My other Linux machine is a ChromeBox
Re: Dirty Cow bug fix in place?
This exploit only affects systems where the attacker can gain access (as any user) to run code directly. It isn't one where there is a "backdoor" method of gaining access.
If you have secured your Pi properly (at the very least change default the "pi" password), you're very unlikely to be affected.
If your haven't secured your Pi by changing the password and you have it connected directly to the internet (not via a router), you have a lot more to worry about than this exploit.
Most people will have routers that block incoming connections and should be safe.
If you have secured your Pi properly (at the very least change default the "pi" password), you're very unlikely to be affected.
If your haven't secured your Pi by changing the password and you have it connected directly to the internet (not via a router), you have a lot more to worry about than this exploit.
Most people will have routers that block incoming connections and should be safe.
Re: Dirty Cow bug fix in place?
This is a pretty dumb statement. Dirty Cow allows any local user to gain root privileges. Bad enough.rpdom wrote:This exploit only affects systems where the attacker can gain access (as any user) to run code directly. It isn't one where there is a "backdoor" method of gaining access.
I don't know what your understanding of security is. If somebody compromises my web server (let's say, a
remote code execution backdoor or bug), yes, this person
could (under normal circumstances) probably delete some/most of my website, look at all my www files, but
would not be able to reboot or load a kernel driver or whatever root can do and others can't.
He couldn't even steal my private keys!
Wow, this is 2016 and the only security measure we need is change the default password. And thenIf you have secured your Pi properly (at the very least change default the "pi" password), you're very unlikely to be affected.
we call this "properly securing your pi".
You're probably using a properly secured Windows XP and Ubuntu in a VM and are part of the big
DDoS attacks we could see in the past few months without even knowing...
This bug is already exploited in the wild! This is how they spotted it.
It took my raspberry pi offline and I wait for a kernel update or maybe I'll go through the pain and build it myself.
I hope a fix comes soon, it's literally two lines. Is this so hard to do? Or is this too much to ask for?
Re: Dirty Cow bug fix in place?
wqtr3: read the github issue. rpi-update contains the fix, the raspberrypi-kernel package will be updated in due course.
ShiftPlusOne wrote:https://github.com/raspberrypi/linux/issues/1694
Rockets are loud.
https://astro-pi.org
https://astro-pi.org
-
- Raspberry Pi Engineer & Forum Moderator
- Posts: 6279
- Joined: Fri Jul 29, 2011 5:36 pm
- Location: The unfashionable end of the western spiral arm of the Galaxy
Re: Dirty Cow bug fix in place?
It has been pushed already. It's just that it take a little while for it to show up in the repo.
- micksulley
- Posts: 178
- Joined: Sat Mar 03, 2012 11:48 am
- Location: Melton Mowbray, England
Re: Dirty Cow bug fix in place?
I have several pi's and have just tried to update them all
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get install raspberrypi-kernel
All but one are fine, but on that one I get
E: Unable to locate package raspberrypi-kernel
On that one I also ran
sudo rpi-update
but I still get the same problem
Any idea how to fix this?
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get install raspberrypi-kernel
All but one are fine, but on that one I get
E: Unable to locate package raspberrypi-kernel
On that one I also ran
sudo rpi-update
but I still get the same problem
Any idea how to fix this?
-
- Raspberry Pi Engineer & Forum Moderator
- Posts: 6279
- Joined: Fri Jul 29, 2011 5:36 pm
- Location: The unfashionable end of the western spiral arm of the Galaxy
Re: Dirty Cow bug fix in place?
Output of 'apt-cache policy'?micksulley wrote:I have several pi's and have just tried to update them all
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get install raspberrypi-kernel
All but one are fine, but on that one I get
E: Unable to locate package raspberrypi-kernel
On that one I also ran
sudo rpi-update
but I still get the same problem
Any idea how to fix this?
- micksulley
- Posts: 178
- Joined: Sat Mar 03, 2012 11:48 am
- Location: Melton Mowbray, England
Re: Dirty Cow bug fix in place?
Code: Select all
gene@pi-geneweb ~ $ apt-cache policy
Package files:
100 /var/lib/dpkg/status
release a=now
500 http://archive.raspberrypi.org/debian/ wheezy/main armhf Packages
release o=Raspberry Pi Foundation,a=oldstable,n=wheezy,l=Raspberry Pi Foundation,c=main
origin archive.raspberrypi.org
500 http://raspberrypi.collabora.com/ wheezy/rpi armhf Packages
release o=Collabora,n=wheezy,l=Collabora Raspberry Pi graphics enablement,c=rpi
origin raspberrypi.collabora.com
500 http://mirrordirector.raspbian.org/raspbian/ wheezy/rpi armhf Packages
release v=7.0,o=Raspbian,a=oldstable,n=wheezy,l=Raspbian,c=rpi
origin mirrordirector.raspbian.org
500 http://mirrordirector.raspbian.org/raspbian/ wheezy/non-free armhf Packages
release v=7.0,o=Raspbian,a=oldstable,n=wheezy,l=Raspbian,c=non-free
origin mirrordirector.raspbian.org
500 http://mirrordirector.raspbian.org/raspbian/ wheezy/contrib armhf Packages
release v=7.0,o=Raspbian,a=oldstable,n=wheezy,l=Raspbian,c=contrib
origin mirrordirector.raspbian.org
500 http://mirrordirector.raspbian.org/raspbian/ wheezy/main armhf Packages
release v=7.0,o=Raspbian,a=oldstable,n=wheezy,l=Raspbian,c=main
origin mirrordirector.raspbian.org
Pinned packages:
gene@pi-geneweb ~ $
-
- Raspberry Pi Engineer & Forum Moderator
- Posts: 6279
- Joined: Fri Jul 29, 2011 5:36 pm
- Location: The unfashionable end of the western spiral arm of the Galaxy
Re: Dirty Cow bug fix in place?
We don't support wheezy. rpi-update alone should be enough to fix the bug, but I can't promise that it will work.
- micksulley
- Posts: 178
- Joined: Sat Mar 03, 2012 11:48 am
- Location: Melton Mowbray, England
Re: Dirty Cow bug fix in place?
I'm not sure how this has happened, I looked at the others as well and they are Jessie. How can I upgrade this one to Jessie? I tried
sudo apt-get dist-upgrade
but it says nothing to upgrade.
sudo apt-get dist-upgrade
but it says nothing to upgrade.
-
- Raspberry Pi Engineer & Forum Moderator
- Posts: 6279
- Joined: Fri Jul 29, 2011 5:36 pm
- Location: The unfashionable end of the western spiral arm of the Galaxy
Re: Dirty Cow bug fix in place?
Make sure you have a backup before you start.
viewtopic.php?f=66&t=121880
viewtopic.php?f=66&t=121880
-
- Posts: 25238
- Joined: Tue Mar 25, 2014 12:40 pm
- Location: Delightful Dorset
Re: Dirty Cow bug fix in place?
The information is out there....you just have to let it in.
My other Linux machine is a ChromeBox
My other Linux machine is a ChromeBox
-
- Posts: 7436
- Joined: Sat Jan 12, 2013 3:01 am
- Location: Grants Pass, OR, USA
- Contact: Website
Re: Dirty Cow bug fix in place?
Do not do that command. It's not needed even if it did work.micksulley wrote:.........
sudo apt-get install raspberrypi-kernel
All but one are fine, but on that one I get
E: Unable to locate package raspberrypi-kernel
On that one I also ran
sudo rpi-update
but I still get the same problem
Any idea how to fix this?
Simply do the following and the new kernel will be installed.
Code: Select all
sudo apt-get update
sudo apt-get upgrade
Unless specified otherwise my response is based on the latest and fully updated RPiOS Buster w/ Desktop OS.