CVE-2021-47316CWE-476

CVE-2021-47316

High · published May 21, 2024

CVSS v3.1
7.5
EPSS
1%
Percentile
49.2
In the wild
Unconfirmed
What it is

In the Linux kernel, the following vulnerability has been resolved:

nfsd: fix NULL dereference in nfs3svc_encode_getaclres

In error cases the dentry may be NULL.

Before 20798dfe249a, the encoder also checked dentry and

d_really_is_positive(dentry), but that looks like overkill to me--zero

status should be enough to guarantee a positive dentry.

This isn't the first time we've seen an error-case NULL dereference

hidden in the initialization of a local variable in an xdr encoder. But

I went back through the other recent rewrites and didn't spot any

similar bugs.

The record
Technical detail
CVSS v3.1
7.5 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.00622 · 49.2th percentile
Weakness
CWE-476 · NULL Pointer Dereference
Published
2024-05-21T19:15Z
Affected products (1)
ProductVersionsFixed in
linux/linux_kernel≥ 5.13, < 5.13.45.13.4
References (8)
EPSS history
Timeline
  • 21 MAY 14:35Z
    nfsd: fix NULL dereference in nfs3svc_encode_getaclres
    cvelistv5