Bug 2338815 (CVE-2025-21635) - CVE-2025-21635 kernel: rds: sysctl: rds_tcp_{rcv,snd}buf: avoid using current->nsproxy
Summary: CVE-2025-21635 kernel: rds: sysctl: rds_tcp_{rcv,snd}buf: avoid using current...
Keywords:
Status: NEW
Alias: CVE-2025-21635
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-01-19 11:01 UTC by OSIDB Bzimport
Modified: 2025-01-20 07:46 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-01-19 11:01:20 UTC
In the Linux kernel, the following vulnerability has been resolved:

rds: sysctl: rds_tcp_{rcv,snd}buf: avoid using current->nsproxy

As mentioned in a previous commit of this series, using the 'net'
structure via 'current' is not recommended for different reasons:

- Inconsistency: getting info from the reader's/writer's netns vs only
  from the opener's netns.

- current->nsproxy can be NULL in some cases, resulting in an 'Oops'
  (null-ptr-deref), e.g. when the current task is exiting, as spotted by
  syzbot [1] using acct(2).

The per-netns structure can be obtained from the table->data using
container_of(), then the 'net' one can be retrieved from the listen
socket (if available).

Comment 1 Avinash Hanwate 2025-01-20 07:42:12 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025011943-CVE-2025-21635-12e7@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.