mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Vitaly V. Bursov" <vitalyvb@ukr.net>
To: linux-kernel@vger.kernel.org
Cc: Alan Cox <alan@redhat.com>
Subject: linux-2.6.7 Equalizer Load-balancer.  eql.c. local non-privileged DoS
Date: Fri, 18 Jun 2004 11:51:53 +0300	[thread overview]
Message-ID: <20040618115153.3ad2dc32.vitalyvb@ukr.net> (raw)

[-- Attachment #1: Type: text/plain, Size: 1019 bytes --]

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

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

             reply	other threads:[~2004-06-18  9:06 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-18  8:51 Vitaly V. Bursov [this message]
2004-06-18 11:35 ` Herbert Xu
2004-06-19 21:05   ` Jeff Garzik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040618115153.3ad2dc32.vitalyvb@ukr.net \
    --to=vitalyvb@ukr.net \
    --cc=alan@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®