# CVE-2022-50755: udf: Avoid double brelse() in udf\_rename()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.24% (percentile 9, 2026-11-26)
- **Published:** 2025-12-24T13:05:48.928Z
- **Modified:** 2026-10-15T22:17:33.670Z

## Who should check

- Anyone running Linux \>= 231473f6ddcef9c01993e0bfe36acc6f8e425c31, \< 78eba2778ae10fb2a9d450e14d26eb6f6bf1f906; \>= 231473f6ddcef9c01993e0bfe36acc6f8e425c31, \< 9d2cad69547abea961fa80426d600b861de1952b; \>= 231473f6ddcef9c01993e0bfe36acc6f8e425c31, \< d6da7ec0f94f5208c848e0e94b70f54a0bd9c587; \>= 231473f6ddcef9c01993e0bfe36acc6f8e425c31, \< 156d440dea97deada629bb51cb17887abd862605; \>= 231473f6ddcef9c01993e0bfe36acc6f8e425c31, \< 40dba68d418237b1ae2beaa06d46a94dd946278e; \>= 231473f6ddcef9c01993e0bfe36acc6f8e425c31, \< e7a6a53c871460727be09f4414ccb29fb8697526; \>= 231473f6ddcef9c01993e0bfe36acc6f8e425c31, \< 4fca09045509f5bde8fc28e68fbca38cb4bdcf2e; \>= 231473f6ddcef9c01993e0bfe36acc6f8e425c31, \< 090bf49833c51da297ec74f98ad2bf44daea9311; \>= 231473f6ddcef9c01993e0bfe36acc6f8e425c31, \< c791730f2554a9ebb8f18df9368dc27d4ebc38c2
- Anyone running Linux 4.2

## Description

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

udf: Avoid double brelse() in udf\_rename()

syzbot reported a warning like below \[1\]:

VFS: brelse: Trying to free free buffer
WARNING: CPU: 2 PID: 7301 at fs/buffer.c:1145 \_\_brelse+0x67/0xa0
...
Call Trace:
 \<TASK\>
 invalidate\_bh\_lru+0x99/0x150
 smp\_call\_function\_many\_cond+0xe2a/0x10c0
 ? generic\_remap\_file\_range\_prep+0x50/0x50
 ? \_\_brelse+0xa0/0xa0
 ? \_\_mutex\_lock+0x21c/0x12d0
 ? smp\_call\_on\_cpu+0x250/0x250
 ? rcu\_read\_lock\_sched\_held+0xb/0x60
 ? lock\_release+0x587/0x810
 ? \_\_brelse+0xa0/0xa0
 ? generic\_remap\_file\_range\_prep+0x50/0x50
 on\_each\_cpu\_cond\_mask+0x3c/0x80
 blkdev\_flush\_mapping+0x13a/0x2f0
 blkdev\_put\_whole+0xd3/0xf0
 blkdev\_put+0x222/0x760
 deactivate\_locked\_super+0x96/0x160
 deactivate\_super+0xda/0x100
 cleanup\_mnt+0x222/0x3d0
 task\_work\_run+0x149/0x240
 ? task\_work\_cancel+0x30/0x30
 do\_exit+0xb29/0x2a40
 ? reacquire\_held\_locks+0x4a0/0x4a0
 ? do\_raw\_spin\_lock+0x12a/0x2b0
 ? mm\_update\_next\_owner+0x7c0/0x7c0
 ? rwlock\_bug.part.0+0x90/0x90
 ? zap\_other\_threads+0x234/0x2d0
 do\_group\_exit+0xd0/0x2a0
 \_\_x64\_sys\_exit\_group+0x3a/0x50
 do\_syscall\_64+0x34/0xb0
 entry\_SYSCALL\_64\_after\_hwframe+0x63/0xcd

The cause of the issue is that brelse() is called on both ofibh.sbh
and ofibh.ebh by udf\_find\_entry() when it returns NULL.  However,
brelse() is called by udf\_rename(), too.  So, b\_count on buffer\_head
becomes unbalanced.

This patch fixes the issue by not calling brelse() by udf\_rename()
when udf\_find\_entry() returns NULL.

## Affected and fixed versions

- Linux: \>= 231473f6ddcef9c01993e0bfe36acc6f8e425c31, \< 78eba2778ae10fb2a9d450e14d26eb6f6bf1f906; \>= 231473f6ddcef9c01993e0bfe36acc6f8e425c31, \< 9d2cad69547abea961fa80426d600b861de1952b; \>= 231473f6ddcef9c01993e0bfe36acc6f8e425c31, \< d6da7ec0f94f5208c848e0e94b70f54a0bd9c587; \>= 231473f6ddcef9c01993e0bfe36acc6f8e425c31, \< 156d440dea97deada629bb51cb17887abd862605; \>= 231473f6ddcef9c01993e0bfe36acc6f8e425c31, \< 40dba68d418237b1ae2beaa06d46a94dd946278e; \>= 231473f6ddcef9c01993e0bfe36acc6f8e425c31, \< e7a6a53c871460727be09f4414ccb29fb8697526; \>= 231473f6ddcef9c01993e0bfe36acc6f8e425c31, \< 4fca09045509f5bde8fc28e68fbca38cb4bdcf2e; \>= 231473f6ddcef9c01993e0bfe36acc6f8e425c31, \< 090bf49833c51da297ec74f98ad2bf44daea9311; \>= 231473f6ddcef9c01993e0bfe36acc6f8e425c31, \< c791730f2554a9ebb8f18df9368dc27d4ebc38c2 (cvelist)
- Linux: 4.2 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-50755. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-50755.md
Affected: Linux >= 231473f6ddcef9c01993e0bfe36acc6f8e425c31, < 78eba2778ae10fb2a9d450e14d26eb6f6bf1f906; >= 231473f6ddcef9c01993e0bfe36acc6f8e425c31, < 9d2cad69547abea961fa80426d600b861de1952b; >= 231473f6ddcef9c01993e0bfe36acc6f8e425c31, < d6da7ec0f94f5208c848e0e94b70f54a0bd9c587; >= 231473f6ddcef9c01993e0b…
Fixed in: Linux 78eba2778ae10fb2a9d450e14d26eb6f6bf1f906, Linux 9d2cad69547abea961fa80426d600b861de1952b, Linux 156d440dea97deada629bb51cb17887abd862605, Linux 40dba68d418237b1ae2beaa06d46a94dd946278e, Linux 4fca09045509f5bde8fc28e68fbca38cb4bdcf2e, Linux 090bf49833c51da297ec74f98ad2bf44daea9311

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-50755 being exploited?

There is no confirmed exploitation: CVE-2022-50755 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.24% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-50755?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2022-50755?

Linux \>= 231473f6ddcef9c01993e0bfe36acc6f8e425c31, \< 78eba2778ae10fb2a9d450e14d26eb6f6bf1f906; \>= 231473f6ddcef9c01993e0bfe36acc6f8e425c31, \< 9d2cad69547abea961fa80426d600b861de1952b; \>= 231473f6ddcef9c01993e0bfe36acc6f8e425c31, \< d6da7ec0f94f5208c848e0e94b70f54a0bd9c587; \>= 231473f6ddcef9c01993e0bfe36acc6f8e425c31, \< 156d440dea97deada629bb51cb17887abd862605; \>= 231473f6ddcef9c01993e0bfe36acc6f8e425c31, \< 40dba68d418237b1ae2beaa06d46a94dd946278e; \>= 231473f6ddcef9c01993e0bfe36acc6f8e425c31, \< e7a6a53c871460727be09f4414ccb29fb8697526; \>= 231473f6ddcef9c01993e0bfe36acc6f8e425c31, \< 4fca09045509f5bde8fc28e68fbca38cb4bdcf2e; \>= 231473f6ddcef9c01993e0bfe36acc6f8e425c31, \< 090bf49833c51da297ec74f98ad2bf44daea9311; \>= 231473f6ddcef9c01993e0bfe36acc6f8e425c31, \< c791730f2554a9ebb8f18df9368dc27d4ebc38c2; Linux 4.2.

### Is there a fix for CVE-2022-50755?

Yes. Fixed in Linux 78eba2778ae10fb2a9d450e14d26eb6f6bf1f906, Linux 9d2cad69547abea961fa80426d600b861de1952b, Linux 156d440dea97deada629bb51cb17887abd862605, Linux 40dba68d418237b1ae2beaa06d46a94dd946278e, Linux 4fca09045509f5bde8fc28e68fbca38cb4bdcf2e, Linux 090bf49833c51da297ec74f98ad2bf44daea9311. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2022-50755?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/78eba2778ae10fb2a9d450e14d26eb6f6bf1f906>
- other: <https://git.kernel.org/stable/c/9d2cad69547abea961fa80426d600b861de1952b>
- other: <https://git.kernel.org/stable/c/d6da7ec0f94f5208c848e0e94b70f54a0bd9c587>
- other: <https://git.kernel.org/stable/c/156d440dea97deada629bb51cb17887abd862605>
- other: <https://git.kernel.org/stable/c/40dba68d418237b1ae2beaa06d46a94dd946278e>
- other: <https://git.kernel.org/stable/c/e7a6a53c871460727be09f4414ccb29fb8697526>
- other: <https://git.kernel.org/stable/c/4fca09045509f5bde8fc28e68fbca38cb4bdcf2e>
- other: <https://git.kernel.org/stable/c/090bf49833c51da297ec74f98ad2bf44daea9311>
- other: <https://git.kernel.org/stable/c/c791730f2554a9ebb8f18df9368dc27d4ebc38c2>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-50755>

HTML: <https://flawdb.com/CVE-2022-50755> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-50755>
