Mq_open and posix message queue in linux

Source: Internet
Author: User
Tags cve

A header file: mqueue. h is found in the/etc/inclue directory of the server. If you do not know what to do, check it. The following information is displayed:

(1) Implement posix message queues in linux. You can use man mq_open series functions;

(2) The 2.4 kernel does not support POSIX very well, so it is specially upgraded to 2.6.
-Lposix4 is not added for the link, but-lrt

Http://bbs.chinaunix.net/thread-2191087-1-1.html

 

(3) Some people mentioned: "The mq_open series implementation in linux is really bad"

Http://www.newsmth.net/nForum/article/LinuxDev/33733

The specific situation needs to be analyzed in detail. We will not discuss it here, but will only prepare materials for future reference.

 

(4) I even found the "DoS vulnerability in Linux Kernel mq_open system call"

DoS vulnerability in Linux Kernel mq_open system call
Release date: Source: Green Alliance technology Author:
Affected Systems:
Linux Kernel 2.6.9
RedHat Linux ws 4
RedHat Linux Es 4
RedHat Linux Desktop 4
RedHat Linux as 4
Description:
BugTraq ID: 16283
CVE (CAN) ID: CVE-2005-335
Linux Kernel is the kernel used by open source Linux.
Linux Kernel has a directory operation implementation vulnerability. Local attackers may exploit this vulnerability to launch DoS attacks on the system.
If the dentry_open function fails to be called, The mntput function is called multiple times. In this case, the mq_open System Call of Linux kernel may decrease the counter twice, which allows local attackers to make the system busy and cause DOS.
<* Source: Alexander Viro (aviro@redhat.com)
Link: http://lwn.net/Alerts/168077? Format = printable
*>

Suggestion:
Vendor patch:
RedHat
------
For this reason, RedHat has released a Security Bulletin (RHSA-2006: 0101-01) and patch:

RHSA-2006: 0101-01: Important: Kernel Security Update

Link: http://lwn.net/Alerts/168077? Format = printable

Http://tech.ccidnet.com/art/782/20040304/599207_1.html

 

(5) other materials:

Http://hi.baidu.com/wangjianzhong0/item/4a2e53faa6de08693d1485f4

Http://www.lemthy.com/20120609/linux-posix-message-queue-mq_open/

 

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.