Linux EXT4 FS development
 help / color / mirror / Atom feed
* 6.1.y: missing "ext4: avoid infinite loops caused by residual data" (CVE-2026-31448)
@ 2026-11-24  9:50 Fusong Li 李福松
  2026-11-24 14:20 ` Greg KH
  2026-11-24 14:50 ` Sasha Levin
  0 siblings, 2 replies; 3+ messages in thread
From: Fusong Li 李福松 @ 2026-11-24  9:50 UTC (permalink / raw)
  To: stable@vger.kernel.org
  Cc: linux-ext4@vger.kernel.org, Jan Kara, Theodore Ts'o,
	sashal@kernel.org, Edward Adam Davis, cve@kernel.org

Hi,

Upstream commit 5422fe71d26d ("ext4: avoid infinite loops caused by
residual data") is in 6.6.131, 6.12.80, 6.18.21 and 6.19.11, but 6.1.y
has no copy of it:

- c66545e83a80 added it to 6.1.y, and 9594622f8a39 reverted it in the
  same release (6.1.168), together with the "get rid of ppath" series
  that it was written against.
- v6.1.193 still has the old code in ext4_ext_map_blocks():

      err = ext4_ext_insert_extent(handle, inode, &path, &newex, flags);
      if (err) {
              if (allocated_clusters) {
                      ...
                      ext4_free_blocks(...);



The fix does not depend on the ppath rework: on 6.1 it only needs the
condition change on the old API, i.e.

      if (allocated_clusters && (err == -EDQUOT || err == -ENOSPC)) {

Could this be backported to 6.1.y? A patch adapted to the 6.1 API can
follow if that helps.

Note for cve@kernel.org: the CVE-2026-31448 record lists 6.1.168 as
unaffected, but the fix and its revert are both in 6.1.168, so no 6.1
release currently contains it.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: 6.1.y: missing "ext4: avoid infinite loops caused by residual data" (CVE-2026-31448)
  2026-11-24  9:50 6.1.y: missing "ext4: avoid infinite loops caused by residual data" (CVE-2026-31448) Fusong Li 李福松
@ 2026-11-24 14:20 ` Greg KH
  2026-11-24 14:50 ` Sasha Levin
  1 sibling, 0 replies; 3+ messages in thread
From: Greg KH @ 2026-11-24 14:20 UTC (permalink / raw)
  To: Fusong Li 李福松
  Cc: stable@vger.kernel.org, linux-ext4@vger.kernel.org, Jan Kara,
	Theodore Ts'o, sashal@kernel.org, Edward Adam Davis,
	cve@kernel.org

On Tue, Nov 24, 2026 at 09:50:37AM +0000, Fusong Li 李福松 wrote:
> Hi,
> 
> Upstream commit 5422fe71d26d ("ext4: avoid infinite loops caused by
> residual data") is in 6.6.131, 6.12.80, 6.18.21 and 6.19.11, but 6.1.y
> has no copy of it:
> 
> - c66545e83a80 added it to 6.1.y, and 9594622f8a39 reverted it in the
>   same release (6.1.168), together with the "get rid of ppath" series
>   that it was written against.
> - v6.1.193 still has the old code in ext4_ext_map_blocks():
> 
>       err = ext4_ext_insert_extent(handle, inode, &path, &newex, flags);
>       if (err) {
>               if (allocated_clusters) {
>                       ...
>                       ext4_free_blocks(...);
> 
> 
> 
> The fix does not depend on the ppath rework: on 6.1 it only needs the
> condition change on the old API, i.e.
> 
>       if (allocated_clusters && (err == -EDQUOT || err == -ENOSPC)) {
> 
> Could this be backported to 6.1.y? A patch adapted to the 6.1 API can
> follow if that helps.

You need to provide a working, backported, patch if you wish to see this
applied to this tree.

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: 6.1.y: missing "ext4: avoid infinite loops caused by residual data" (CVE-2026-31448)
  2026-11-24  9:50 6.1.y: missing "ext4: avoid infinite loops caused by residual data" (CVE-2026-31448) Fusong Li 李福松
  2026-11-24 14:20 ` Greg KH
@ 2026-11-24 14:50 ` Sasha Levin
  1 sibling, 0 replies; 3+ messages in thread
From: Sasha Levin @ 2026-11-24 14:50 UTC (permalink / raw)
  To: stable@vger.kernel.org
  Cc: Sasha Levin, linux-ext4@vger.kernel.org, Jan Kara,
	Theodore Ts'o, Edward Adam Davis, cve@kernel.org,
	Fusong Li 李福松

> - c66545e83a80 added it to 6.1.y, and 9594622f8a39 reverted it in the
>   same release (6.1.168), together with the "get rid of ppath" series
>   that it was written against.

Right. It went out with the revert of the ppath series, not because of a
problem with the fix itself.

> Could this be backported to 6.1.y? A patch adapted to the 6.1 API can
> follow if that helps.

Queued for 6.1, and for 5.15 and 5.10, using Bin Lan's backport [1],
which makes exactly that condition change on the old API. No need to
send yours, thanks.

[1] https://lore.kernel.org/all/20260506073835.32481-1-lanbincn@139.com/

-- 
Thanks,
Sasha

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-11-24 14:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-24  9:50 6.1.y: missing "ext4: avoid infinite loops caused by residual data" (CVE-2026-31448) Fusong Li 李福松
2026-11-24 14:20 ` Greg KH
2026-11-24 14:50 ` Sasha Levin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox