Search covers the description text, product and vendor names and weakness types (also partial words).

CVE-2021-47366
linux linux kernel

Score5.5 Medium
CVSS 3.1
Exploit probability (EPSS)0.28%
within the next 30 days
CategoryMemory corruption
Published21 May 2024
Last modified: 4 August 2026

In short

This vulnerability can be exploited with local access to the device, with a regular user account, without any user interaction.

A successful attack has high impact: crashing the system or making it unavailable.

Weakness type: Out-of-bounds write.

✨ AI commentary

After a short ad, a plain-language commentary on this vulnerability is shown. AI can make mistakes; base decisions on the official sources.

Official description

In the Linux kernel, the following vulnerability has been resolved: afs: Fix corruption in reads at fpos 2G-4G from an OpenAFS server AFS-3 has two data fetch RPC variants, FS.FetchData and FS.FetchData64, and Linux's afs client switches between them when talking to a non-YFS server if the read size, the file position or the sum of the two have the upper 32 bits set of the 64-bit value. This is a problem, however, since the file position and length fields of FS.FetchData are *signed* 32-bit values. Fix this by capturing the capability bits obtained from the fileserver when it's sent an FS.GetCapabilities RPC, rather than just discarding them, and then picking out the VICED_CAPABILITY_64BITFILES flag. This can then be used to decide whether to use FS.FetchData or FS.FetchData64 - and also FS.StoreData or FS.StoreData64 - rather than using upper_32_bits() to switch on the parameter values. This capabilities flag could also be used to limit the maximum size of the file, but all servers must be checked for that. Note that the issue does not exist with FS.StoreData - that uses *unsigned* 32-bit values. It's also not a problem with Auristor servers as its YFS.FetchData64 op uses unsigned 64-bit values. This can be tested by cloning a git repo through an OpenAFS client to an OpenAFS server and then doing "git status" on it from a Linux afs client[1]. Provided the clone has a pack file that's in the 2G-4G range, the git status will show errors like: error: packfile .git/objects/pack/pack-5e813c51d12b6847bbc0fcd97c2bca66da50079c.pack does not match index error: packfile .git/objects/pack/pack-5e813c51d12b6847bbc0fcd97c2bca66da50079c.pack does not match index This can be observed in the server's FileLog with something like the following appearing: Sun Aug 29 19:31:39 2021 SRXAFS_FetchData, Fid = 2303380852.491776.3263114, Host 192.168.11.201:7001, Id 1001 Sun Aug 29 19:31:39 2021 CheckRights: len=0, for host=192.168.11.201:7001 Sun Aug 29 19:31:39 2021 FetchData_RXStyle: Pos 18446744071815340032, Len 3154 Sun Aug 29 19:31:39 2021 FetchData_RXStyle: file size 2400758866 ... Sun Aug 29 19:31:40 2021 SRXAFS_FetchData returns 5 Note the file position of 18446744071815340032. This is the requested file position sign-extended.

CVSS: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Weakness: CWE-787 – Out-of-bounds write

Affected products

VendorProductVersions
linuxlinux kernel>=2.6.22 <5.14.9
linuxlinux kernel5.15

Sources

Latest in the same category

  • CVE-2026-119225 High 8.7
    A NULL pointer dereference in the binary command protocol handler of Reprise Software Reprise License Manager allows an unauthenticated remote attacker to cause a denial of service via a crafted network request. A…
    Memory corruption · 30 November 2026
  • CVE-2026-119224 Critical 9.2
    A stack-based buffer overflow in the embedded web server of Reprise Software Reprise License Manager, allows an unauthenticated remote attacker to cause denial of service and potentially execute code via an oversized…
    Memory corruption · 30 November 2026
  • CVE-2026-138781 High 7.8
    A flaw was found in the file-psd plugin in GIMP. Incorrect bounds checks when loading PSD alpha channel metadata can cause an out-of-bounds read. Opening a crafted PSD file can crash the application and may allow…
    Memory corruption · 30 November 2026
  • CVE-2026-138700 High 7.5
    A flaw was found in sstp-client. A stack-based buffer overflow in sstp_http_get() can be triggered when parsing HTTP headers from an SSTP server response before authentication. A remote peer can cause the client to…
    Memory corruption · 30 November 2026
  • CVE-2025-6622 Low 1.8
    Improper Validation of Specified Quantity in Input vulnerability in ABB KNXnet/IP Interface IPS/S3.1.1. This issue affects KNXnet/IP Interface IPS/S3.1.1: through 1.0.494.
    Memory corruption · 30 November 2026
  • CVE-2025-59850 Low 1.6
    HCL CAMWorks is affected by an Insecure Binary Compilation vulnerability where an attacker could potentially reverse engineer the binary and leak information or tamper with the code.
    Memory corruption · 30 November 2026