lkml.org 
[lkml]   [2004]   [Jun]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectlinux-2.6.7 Equalizer Load-balancer. eql.c. local non-privileged DoS
Hello,

there are multiple vulns in drivers/net/eql.c

====
static int eql_g_slave_cfg(struct net_device *dev, slave_config_t __user *scp)
{
...
if (copy_from_user(&sc, scp, sizeof (slave_config_t)))
return -EFAULT;

slave_dev = dev_get_by_name(sc.slave_name);

ret = -EINVAL;

spin_lock_bh(&eql->queue.lock);
if (eql_is_slave(slave_dev)) {
...
====

and

====
static int eql_s_slave_cfg(struct net_device *dev, slave_config_t __user *scp)
{
....
if (copy_from_user(&sc, scp, sizeof (slave_config_t)))
return -EFAULT;

eql = dev->priv;
slave_dev = dev_get_by_name(sc.slave_name);

ret = -EINVAL;

spin_lock_bh(&eql->queue.lock);
if (eql_is_slave(slave_dev)) {
====

if there is no such device, dev_get_by_name returns NULL and everything dies.
Exploiting this is trivial.


Hopefully somebody will check this file carefully and fix it.

I am not in a list.
--
Thanks,
Vitaly
GPG Key ID: F95A23B9
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2005-03-22 14:03    [W:0.059 / U:0.248 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site