[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <26f5c90b-2e5d-5c95-efd2-aa9149acbf26@metux.net>
Date: Fri, 30 Jul 2021 12:18:52 +0200
From: "Enrico Weigelt, metux IT consult" <lkml@...ux.net>
To: Wang Zi-cheng <wzc@...il.nju.edu.cn>, keescook@...omium.org,
tycho@...ho.pizza, linux-hardening@...r.kernel.org
Subject: Re: [PATCH] RFC v2 struct const ops pointers member hardening
On 28.07.21 08:52, Wang Zi-cheng wrote:
Hi,
> 1. this is a useful hardening, my opinion was wrong in the previous patch,
> because the attacker may overwrite a struct with an "struct file*" pointer,
> which point to a manufactured file struct with malicious f_op.
> Hardening operation pointers CAN help.
>> On the other side, kernel uses `kmem_cache_create` to alloc file/inode rather than `kmalloc`,
>> which makes it hard to exploit through heap overflow or UAF, so maybe this is not a "must" update.
note that there can be situations where a file_operations struct is
actually created at runtime. quite rare, but still possible.
--mtx
--
---
Hinweis: unverschlüsselte E-Mails können leicht abgehört und manipuliert
werden ! Für eine vertrauliche Kommunikation senden Sie bitte ihren
GPG/PGP-Schlüssel zu.
---
Enrico Weigelt, metux IT consult
Free software and Linux embedded engineering
info@...ux.net -- +49-151-27565287
Powered by blists - more mailing lists