CVE-2022-50400

staging: greybus: audio_helper: remove unused and wrong debugfs usage

State
Published
Severity
5.5 Medium
Published
Sep 18, 2025
Updated
May 11, 2026
Reserved
Sep 17, 2025

Read the record on cve.org

Description

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

staging: greybus: audio_helper: remove unused and wrong debugfs usage

In the greybus audio_helper code, the debugfs file for the dapm has the potential to be removed and memory will be leaked. There is also the very real potential for this code to remove ALL debugfs entries from the system, and it seems like this is what will really happen if this code ever runs. This all is very wrong as the greybus audio driver did not create this debugfs file, the sound core did and controls the lifespan of it.

So remove all of the debugfs logic from the audio_helper code as there's no way it could be correct. If this really is needed, it can come back with a fixup for the incorrect usage of the debugfs_lookup() call which is what caused this to be noticed at all.

Scores

CVSSScoreVectorSource
3.15.5 MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HCISA-ADP

Weaknesses

  • CWE-401 Missing Release of Memory after Effective Lifetime

Affected Products

ProductVersions
LinuxLinux
  • 510e340efe0cbd379cf1ff3490d088c3299749b1 to before d0febad83e29d85bb66e4f5cac0115b022403338Affected
  • 510e340efe0cbd379cf1ff3490d088c3299749b1 to before 4dab0d27a4211a27135a6899d6c737e6e0759a11Affected
  • 510e340efe0cbd379cf1ff3490d088c3299749b1 to before 5699afbff1fa2972722e863906c0320d55dd4d58Affected
  • 510e340efe0cbd379cf1ff3490d088c3299749b1 to before d835fa49d9589a780ff0d001bb7e6323238a4afbAffected
  • 510e340efe0cbd379cf1ff3490d088c3299749b1 to before d517cdeb904ddc0cbebcc959d43596426cac40b0Affected
LinuxLinux
  • 5.9Affected
  • before 5.9Not affected
  • 5.10.150 through 5.10.*Not affected
  • 5.15.75 through 5.15.*Not affected
  • 5.19.17 through 5.19.*Not affected
  • 6.0.3 through 6.0.*Not affected
  • 6.1 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.