UBUNTU-CVE-2024-26704

    Dashboard / Vulnerabilities / UBUNTU-CVE-2024-26704

    UBUNTU-CVE-2024-26704

    Published: 3 Apr 2024Last Modified: 8 Oct 2026
    Upstream:
    Aliases:

    Summary:

    Details: In the Linux kernel, the following vulnerability has been resolved: ext4: fix double-free of blocks due to wrong extents moved_len In ext4_move_extents(), moved_len is only updated when all moves are successfully executed, and only discards orig_inode and donor_inode preallocations when moved_len is not zero. When the loop fails to exit after successfully moving some extents, moved_len is not updated and remains at 0, so it does not discard the preallocations. If the moved extents overlap with the preallocated extents, the overlapped extents are freed twice in ext4_mb_release_inode_pa() and ext4_process_freed_data() (as described in commit 94d7c16cbbbd ("ext4: Fix double-free of blocks with EXT4_IOC_MOVE_EXT")), and bb_free is incremented twice. Hence when trim is executed, a zero-division bug is triggered in mb_update_avg_fragment_size() because bb_free is not zero and bb_fragments is zero. Therefore, update move_len after each extent move to avoid the issue.

    Affected packages

    Package

    Name: linux-aws

    Purl: pkg:deb/ubuntu/linux-aws?arch=source&distro=trusty%2Fesm

    Affected ranges

    Type: ECOSYSTEM

    Events:

    Introduced- 0
    Fixed -4.4.0-1131.137

    Affected versions

    4.4.0-1002.2
    4.4.0-1003.3
    4.4.0-1005.5
    4.4.0-1006.6
    4.4.0-1009.9
    4.4.0-1010.10
    4.4.0-1011.11
    4.4.0-1012.12
    4.4.0-1014.14
    4.4.0-1016.16
    4.4.0-1017.17
    4.4.0-1019.19
    4.4.0-1022.22
    4.4.0-1023.23
    4.4.0-1024.25
    4.4.0-1025.26
    4.4.0-1027.30
    4.4.0-1028.31
    4.4.0-1029.32
    4.4.0-1031.34
    4.4.0-1032.35
    4.4.0-1034.37
    4.4.0-1036.39
    4.4.0-1037.40
    4.4.0-1038.41
    4.4.0-1039.42
    4.4.0-1040.43
    4.4.0-1042.45
    4.4.0-1044.47
    4.4.0-1045.48
    4.4.0-1046.50
    4.4.0-1048.52
    4.4.0-1050.54
    4.4.0-1052.56
    4.4.0-1054.58
    4.4.0-1055.59
    4.4.0-1056.60
    4.4.0-1058.62
    4.4.0-1059.63
    4.4.0-1060.64
    4.4.0-1061.65
    4.4.0-1062.66
    4.4.0-1064.68
    4.4.0-1065.69
    4.4.0-1066.70
    4.4.0-1067.71
    4.4.0-1073.77
    4.4.0-1074.78
    4.4.0-1075.79
    4.4.0-1076.80
    4.4.0-1077.81
    4.4.0-1078.82
    4.4.0-1081.85
    4.4.0-1082.86
    4.4.0-1083.87
    4.4.0-1085.89
    4.4.0-1086.90
    4.4.0-1087.91
    4.4.0-1088.92
    4.4.0-1090.94
    4.4.0-1091.95
    4.4.0-1092.96
    4.4.0-1093.97
    4.4.0-1094.99
    4.4.0-1095.100
    4.4.0-1096.101
    4.4.0-1097.102
    4.4.0-1098.103
    4.4.0-1099.104
    4.4.0-1101.106
    4.4.0-1102.107
    4.4.0-1103.108
    4.4.0-1104.109
    4.4.0-1107.113
    4.4.0-1109.115
    4.4.0-1110.116
    4.4.0-1111.117
    4.4.0-1112.118
    4.4.0-1113.119
    4.4.0-1114.120
    4.4.0-1115.121
    4.4.0-1116.122
    4.4.0-1117.123
    4.4.0-1118.124
    4.4.0-1119.125
    4.4.0-1120.126
    4.4.0-1121.127
    4.4.0-1122.128
    4.4.0-1123.129
    4.4.0-1124.130
    4.4.0-1125.131
    4.4.0-1127.133
    4.4.0-1128.134
    4.4.0-1129.135
    4.4.0-1130.136

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    UBUNTU-CVE-2024-26704 | CVE-DB