Bug 2375529 (CVE-2025-38089) - CVE-2025-38089 kernel: sunrpc: handle SVC_GARBAGE during svc auth processing as auth error
Summary: CVE-2025-38089 kernel: sunrpc: handle SVC_GARBAGE during svc auth processing ...
Keywords:
Status: NEW
Alias: CVE-2025-38089
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-06-30 08:01 UTC by OSIDB Bzimport
Modified: 2025-08-27 02:38 UTC (History)
0 users

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


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2025:11411 0 None None None 2025-07-21 03:56:34 UTC
Red Hat Product Errata RHSA-2025:11428 0 None None None 2025-07-21 09:00:43 UTC
Red Hat Product Errata RHSA-2025:11810 0 None None None 2025-07-28 03:01:35 UTC
Red Hat Product Errata RHSA-2025:12976 0 None None None 2025-08-05 11:08:47 UTC
Red Hat Product Errata RHSA-2025:12977 0 None None None 2025-08-05 10:57:31 UTC

Description OSIDB Bzimport 2025-06-30 08:01:09 UTC
In the Linux kernel, the following vulnerability has been resolved:

sunrpc: handle SVC_GARBAGE during svc auth processing as auth error

tianshuo han reported a remotely-triggerable crash if the client sends a
kernel RPC server a specially crafted packet. If decoding the RPC reply
fails in such a way that SVC_GARBAGE is returned without setting the
rq_accept_statp pointer, then that pointer can be dereferenced and a
value stored there.

If it's the first time the thread has processed an RPC, then that
pointer will be set to NULL and the kernel will crash. In other cases,
it could create a memory scribble.

The server sunrpc code treats a SVC_GARBAGE return from svc_authenticate
or pg_authenticate as if it should send a GARBAGE_ARGS reply. RFC 5531
says that if authentication fails that the RPC should be rejected
instead with a status of AUTH_ERR.

Handle a SVC_GARBAGE return as an AUTH_ERROR, with a reason of
AUTH_BADCRED instead of returning GARBAGE_ARGS in that case. This
sidesteps the whole problem of touching the rpc_accept_statp pointer in
this situation and avoids the crash.

Comment 1 Avinash Hanwate 2025-06-30 15:09:13 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025063055-CVE-2025-38089-0a36@gregkh/T

Comment 7 errata-xmlrpc 2025-07-21 03:56:34 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2025:11411 https://access.redhat.com/errata/RHSA-2025:11411

Comment 8 errata-xmlrpc 2025-07-21 09:00:42 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 10

Via RHSA-2025:11428 https://access.redhat.com/errata/RHSA-2025:11428

Comment 9 errata-xmlrpc 2025-07-28 03:01:34 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.4 Extended Update Support

Via RHSA-2025:11810 https://access.redhat.com/errata/RHSA-2025:11810

Comment 10 errata-xmlrpc 2025-08-05 10:57:31 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.4 Extended Update Support

Via RHSA-2025:12977 https://access.redhat.com/errata/RHSA-2025:12977

Comment 11 errata-xmlrpc 2025-08-05 11:08:46 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2025:12976 https://access.redhat.com/errata/RHSA-2025:12976


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