First published: Fri Feb 20 2009(Updated: )
Fix inverted logic in skfp_ioctl(). Non-privileged users should not be able to clear the driver statistics. diff --git a/drivers/net/skfp/skfddi.c b/drivers/net/skfp/skfddi.c index 607efea..9a00e55 100644 --- a/drivers/net/skfp/skfddi.c +++ b/drivers/net/skfp/skfddi.c @@ -1003,9 +1003,9 @@ static int skfp_ioctl(struct net_device *dev, struct ifreq *rq, int cmd) break; case SKFP_CLR_STATS: /* Zero out the driver statistics */ if (!capable(CAP_NET_ADMIN)) { - memset(&lp->MacStat, 0, sizeof(lp->MacStat)); - } else { status = -EPERM; + } else { + memset(&lp->MacStat, 0, sizeof(lp->MacStat)); } break; default:
Affected Software | Affected Version | How to fix |
---|---|---|
Linux Kernel |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
The severity of REDHAT-BUG-486534 is categorized as a medium risk due to potential unauthorized access to driver statistics by non-privileged users.
To fix REDHAT-BUG-486534, update the Linux Kernel to the latest version where the inverted logic in skfp_ioctl() has been corrected.
The systems affected by REDHAT-BUG-486534 include versions of the Linux Kernel that utilize skfp_ioctl().
Not addressing REDHAT-BUG-486534 could allow unauthorized users to manipulate driver statistics, leading to potential security risks.
Yes, a patch addressing REDHAT-BUG-486534 is included in the latest updates for affected versions of the Linux Kernel.