Advisory Published
Updated

REDHAT-BUG-644156

First published: Tue Oct 19 2010(Updated: )

Description of problem: Reported by Nelson Elhage. <a href="https://access.redhat.com/security/cve/CVE-2010-3848">CVE-2010-3848</a> AF_ECONET kernel stack overflow <a href="https://access.redhat.com/security/cve/CVE-2010-3849">CVE-2010-3849</a> AF_ECONET saddr-&gt;cookie NULL dereferences <a href="https://access.redhat.com/security/cve/CVE-2010-3850">CVE-2010-3850</a> AF_ECONET SIOCSIFADDR ioctl does not check privileges The two main vulnerabilities lie in the econet_sendmsg() function. If CONFIG_ECONET_AUNUDP, the function declares a variable-length array of iovec's on the stack: static int econet_sendmsg(struct kiocb *iocb, struct socket *sock, struct msghdr *msg, size_t len) { ... #ifdef CONFIG_ECONET_AUNUDP ... struct iovec iov[msg-&gt;msg_iovlen+1]; ... #endif "msg-&gt;msg_iovlen" is a user-controlled value &lt;= 1024; 1024 'struct iovec's is enough to overflow the kernel stack and clobber the 'thread_info' struct on either 32- or 64-bit systems with or without CONFIG_4KSTACKS. The code populates 'iov' with user-controlled values, so this is almost certainly exploitable for privesc. The second bug is conveniently labeled as such for anyone who cares to look: /* BUG: saddr may be NULL */ eb-&gt;cookie = saddr-&gt;cookie; In fact, 'saddr' comes from userspace and may be NULL (if non-NULL, it will have been copied to kernelspace), leading to a NULL-pointer dereference. This saddr-&gt;cookie dereference appears twice, once in the "hardware" case and once in the "UDP emulation" case. This is easily exploitable for an oops, but probably not anything more. The final issue is in the ec_dev_ioctl function. The SIOCSIFADDR ioctl does not check privileges, allowing an unprivileged user to assign econet addresses to arbitrary interfaces. It is possible this is intentional, but AFAIK it would be unusual for SIOCSIFADDR to be unprivileged, so this may be an accident. Note that it is necessary to use this property in order to make the first two bugs exploitable, since econet_sendmsg will return almost immediately if no econet addresses are configured. Reference: <a href="http://seclists.org/oss-sec/2010/q4/236">http://seclists.org/oss-sec/2010/q4/236</a>

Affected SoftwareAffected VersionHow to fix
Red Hat Linux

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of REDHAT-BUG-644156?

    REDHAT-BUG-644156 is classified as a medium severity vulnerability.

  • How do I fix REDHAT-BUG-644156?

    To fix REDHAT-BUG-644156, you should update your Red Hat Linux Kernel to the latest version that addresses this vulnerability.

  • What are the specific vulnerabilities associated with REDHAT-BUG-644156?

    The vulnerabilities associated with REDHAT-BUG-644156 include CVE-2010-3848, which is an AF_ECONET kernel stack overflow, and CVE-2010-3849, which involves AF_ECONET saddr->cookie NULL dereferences.

  • Which versions of Red Hat Linux are affected by REDHAT-BUG-644156?

    Affected versions of Red Hat Linux Kernel relevant to REDHAT-BUG-644156 can vary, so it's essential to check the specific version details in the security patch notes.

  • Is there any workaround for REDHAT-BUG-644156 while waiting for a patch?

    There are no recommended workarounds for REDHAT-BUG-644156, and applying the provided security updates is strongly advised.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203