---
id: CVE-2023-53684
title: 'xfrm: Zero padding when dumping algos and encap'
summary: |-
  In the Linux kernel, the following vulnerability has been resolved:

  xfrm: Zero padding when dumping algos and encap

  When copying data to user-space we should ensure that only valid
  data is copied over.  Padding in structures may be fil…
severity: none
vendor: Linux
product: Linux
affected:
  - >-
    Linux >= c7a5899eb26e2a4d516d53f65b6dd67be2228041 <
    0725daaa9a879388ed312110f62dbd5ea2d75f8f
  - >-
    Linux >= c7a5899eb26e2a4d516d53f65b6dd67be2228041 <
    5218af4ad5d8948faac19f71583bcd786c3852df
  - >-
    Linux >= c7a5899eb26e2a4d516d53f65b6dd67be2228041 <
    1a351e26cc010d6991fbbd5701ac16581372e26f
  - >-
    Linux >= c7a5899eb26e2a4d516d53f65b6dd67be2228041 <
    8222d5910dae08213b6d9d4bc9a7f8502855e624
  - Linux 5.11
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-11-05T20:27:13.093049Z'
published: '2025-10-07'
updated: '2026-11-05'
sourceUpdated: '2026-11-05T20:31:20.944Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2023-53684'
references:
  - url: 'https://git.kernel.org/stable/c/0725daaa9a879388ed312110f62dbd5ea2d75f8f'
  - url: 'https://git.kernel.org/stable/c/5218af4ad5d8948faac19f71583bcd786c3852df'
  - url: 'https://git.kernel.org/stable/c/1a351e26cc010d6991fbbd5701ac16581372e26f'
  - url: 'https://git.kernel.org/stable/c/8222d5910dae08213b6d9d4bc9a7f8502855e624'
tags:
  - cve.org
epss: 0.00148
epssPercentile: 0.04026
ingestedAt: '2026-11-05T22:38:31.826Z'
---

## Overview

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

xfrm: Zero padding when dumping algos and encap

When copying data to user-space we should ensure that only valid
data is copied over.  Padding in structures may be filled with
random (possibly sensitve) data and should never be given directly
to user-space.

This patch fixes the copying of xfrm algorithms and the encap
template in xfrm_user so that padding is zeroed.

## Affected

- `Linux >= c7a5899eb26e2a4d516d53f65b6dd67be2228041 < 0725daaa9a879388ed312110f62dbd5ea2d75f8f`
- `Linux >= c7a5899eb26e2a4d516d53f65b6dd67be2228041 < 5218af4ad5d8948faac19f71583bcd786c3852df`
- `Linux >= c7a5899eb26e2a4d516d53f65b6dd67be2228041 < 1a351e26cc010d6991fbbd5701ac16581372e26f`
- `Linux >= c7a5899eb26e2a4d516d53f65b6dd67be2228041 < 8222d5910dae08213b6d9d4bc9a7f8502855e624`
- `Linux 5.11`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
