Some Linux kernel security vulnerabilities
Posted Nov 10, 2004 23:35 UTC (Wed) by
iabervon (subscriber, #722)
In reply to:
Some Linux kernel security vulnerabilities by NAR
Parent article:
Some Linux kernel security vulnerabilities
Some of the bugs are failures to handle short reads correctly, which would apply to any system (not language; it's a question of the behavior of the code) which could return some data without returning all of it.
Some are returning a non-error when responding to an error condition. This is reasonably easy to do if you're catching exceptions, but less likely because you can just declare the exception in your throws clause and avoid resignalling the error. It is still possible to end your catch block with "return;" instead of "throw e;" when you want to do something in the error path but resignal the same error.
There's something leading to a minor memory error, which would probably be blocked in Java.
The last one is an actual logic error: the kernel checks whether you can execute a file, and then reads it into your address space without checking whether you can read it.
It would be interesting to see if sparse could be extended to know whether the kernel has any good reason to believe strings to be terminated. Off the top of my head, it seems like it could keep track of this, assuming you want to be paranoid, which is wise in any case.
(
Log in to post comments)