Bug 2338834 (CVE-2025-21641) - CVE-2025-21641 kernel: mptcp: sysctl: blackhole timeout: avoid using current->nsproxy
Summary: CVE-2025-21641 kernel: mptcp: sysctl: blackhole timeout: avoid using current-...
Keywords:
Status: NEW
Alias: CVE-2025-21641
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-01-19 11:02 UTC by OSIDB Bzimport
Modified: 2025-03-03 02:01 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:02:38 UTC
In the Linux kernel, the following vulnerability has been resolved:

mptcp: sysctl: blackhole timeout: avoid using current->nsproxy

As mentioned in the previous commit, 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 'pernet' structure can be obtained from the table->data using
container_of().

Comment 1 Avinash Hanwate 2025-01-20 06:19:25 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025011944-CVE-2025-21641-0897@gregkh/T


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