public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Peter Lemenkov <lemenkov@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/rabbitmq-server] f44: Backport fixes for CVE-2026-67414, CVE-2026-67416, CVE-2026-67418
Date: Mon, 02 Nov 2026 21:05:09 GMT	[thread overview]
Message-ID: <179365350947.1.13117044774295109555.rpms-rabbitmq-server-c17cd2bf5e96@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/rabbitmq-server
            Branch : f44
            Commit : c17cd2bf5e96804ad13e47d54508a31019e130c3
            Author : Peter Lemenkov <lemenkov@gmail.com>
            Date   : 2026-11-02T22:04:07+01:00
            Stats  : +414/-1 in 4 file(s)
            URL    : https://src.fedoraproject.org/rpms/rabbitmq-server/c/c17cd2bf5e96804ad13e47d54508a31019e130c3?branch=f44

            Log:
            Backport fixes for CVE-2026-67414, CVE-2026-67416, CVE-2026-67418

Backported from upstream v4.3.x (fixed upstream in 4.3.4/4.3.5; no
public 4.2.x release carries them):

- ca43c9d5ac: AMQP 1.0 zero-octet arrays as opaque values
  (CVE-2026-67414)
- d5186e66e0: exact symbol length for AMQP 1.0 body sections
  (CVE-2026-67416)
- 908f944a1d: strict MQTT 5 property parsing (CVE-2026-67418)

Test hunks are dropped since the release tarball ships no test
directories.

Resolves: rhbz#2561690, rhbz#2561691, rhbz#2561692

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>

---
diff --git a/rabbitmq-server-0008-Encode-AMQP-1.0-arrays-of-zero-octet-elements-as-opa.patch b/rabbitmq-server-0008-Encode-AMQP-1.0-arrays-of-zero-octet-elements-as-opa.patch
new file mode 100644
index 0000000..2d28ba3
--- /dev/null
+++ b/rabbitmq-server-0008-Encode-AMQP-1.0-arrays-of-zero-octet-elements-as-opa.patch
@@ -0,0 +1,122 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: David Ansari <david.ansari@broadcom.com>
+Date: Tue, 21 Jul 2026 17:58:18 +0200
+Subject: [PATCH 08/10] Encode AMQP 1.0 arrays of zero-octet elements as opaque
+ values
+
+ ## What?
+
+The AMQP 1.0 binary parser (amqp10_binary_parser) decoded an array
+whose element constructor has a zero-octet wire encoding (null, true,
+false, uint0, ulong0, list0 - wire codes 0x40-0x45) by expanding it
+into a full Erlang list, one term per element, via lists:duplicate/2.
+It now instead represents such an array as an opaque value ({as_is,
+TypeCode, Bin}), the same representation already used for decimal and
+NaN/Infinity values that RabbitMQ has no need to interpret further.
+
+ ## Why
+
+For this class of array, the element count is carried in a small,
+fixed-size wire encoding, while the previous implementation allocated
+one term per element when decoding it. This meant the memory needed to
+hold the decoded value had no relationship to the size of the input
+that produced it. Representing the value opaquely removes that
+mismatch entirely, rather than merely capping it, and keeps the parser
+consistent with how it already treats other value kinds it does not
+need to interpret.
+
+(cherry picked from commit 3f0f67dfb7c4390e3cbfa25ab3ee19dcb0845bd4)
+(cherry picked from commit ca43c9d5acf055179d6fbcdeb3b268337c2c3eb6)
+Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
+---
+ .../src/amqp10_binary_generator.erl           |  7 ++-
+ .../src/amqp10_binary_parser.erl              | 46 +++++++++++--------
+ 2 files changed, 32 insertions(+), 21 deletions(-)
+
+diff --git a/deps/amqp10_common/src/amqp10_binary_generator.erl b/deps/amqp10_common/src/amqp10_binary_generator.erl
+index adf16c1164..cce083358c 100644
+--- a/deps/amqp10_common/src/amqp10_binary_generator.erl
++++ b/deps/amqp10_common/src/amqp10_binary_generator.erl
+@@ -245,4 +245,9 @@ generate2(array, {array, Type, List}) ->
+     Array = [constructor(Type),
+              [generate2(Type, I) || I <- List]],
+     S = iolist_size(Array),
+-    [<<(S + 4):32, Count:32>>, Array].
++    [<<(S + 4):32, Count:32>>, Array];
++generate2(array, {as_is, 16#f0, Bin}) ->
++    Bin;
++generate2(array, {as_is, 16#e0, <<_Size:8, Count:8, Type>>}) ->
++    %% Nested array elements are always framed as array32, see constructor/1
++    <<5:32, Count:32, Type>>.
+diff --git a/deps/amqp10_common/src/amqp10_binary_parser.erl b/deps/amqp10_common/src/amqp10_binary_parser.erl
+index 86a2d81e04..6f59ab7b38 100644
+--- a/deps/amqp10_common/src/amqp10_binary_parser.erl
++++ b/deps/amqp10_common/src/amqp10_binary_parser.erl
+@@ -35,8 +35,6 @@
+ -define(DESCRIPTOR_CODE_DATA, 16#75).
+ -define(DESCRIPTOR_CODE_AMQP_SEQUENCE, 16#76).
+ -define(DESCRIPTOR_CODE_AMQP_VALUE, 16#77).
+--define(MAX_ZERO_WIDTH_ARRAY_COUNT, 10_000).
+-
+ 
+ %% server_mode is a special parsing mode used by RabbitMQ when parsing
+ %% AMQP message sections from an AMQP client. This mode:
+@@ -124,32 +122,40 @@ parse(<<Type, _/binary>>, B) ->
+ 
+ parse_array(UnitSize, Bin) ->
+     <<Count:UnitSize, Bin1/binary>> = Bin,
+-    parse_array1(Count, Bin1).
++    parse_array1(UnitSize, Count, Bin1).
+ 
+-parse_array1(Count, <<?DESCRIBED, Rest/binary>>) ->
++parse_array1(UnitSize, Count, <<?DESCRIBED, Rest/binary>>) ->
+     {Descriptor, B1} = parse(Rest),
+     <<_ParsedDescriptorBin:B1/binary, Rest1/binary>> = Rest,
+-    {array, Type, List} = parse_array1(Count, Rest1),
+-    Values = lists:map(fun (Value) ->
+-                               {described, Descriptor, Value}
+-                       end, List),
+-    % this format cannot represent an empty array of described types
+-    {array, {described, Descriptor, Type}, Values};
+-parse_array1(Count, <<Type, ArrayBin/binary>>)
++    case parse_array1(UnitSize, Count, Rest1) of
++        {array, Type, List} ->
++            Values = [{described, Descriptor, Value} || Value <- List],
++            % this format cannot represent an empty array of described types
++            {array, {described, Descriptor, Type}, Values};
++        {as_is, _, _} ->
++            exit({array_of_described_zero_width_elements_unsupported, Count})
++    end;
++parse_array1(UnitSize, Count, <<Type, ArrayBin/binary>>)
+   when Type >= 16#40 andalso Type =< 16#45 ->
+     %% This is an array that must have zero octets of data.
+-    if byte_size(ArrayBin) > 0 ->
+-           exit({failed_to_parse_array_extra_input_remaining, Type, byte_size(ArrayBin)});
+-       Count > ?MAX_ZERO_WIDTH_ARRAY_COUNT ->
+-           exit({failed_to_parse_array_count_exceeds_limit, Type, Count});
+-       true ->
+-           {Value, _} = parse_array_primitive(Type, <<>>),
+-           {array, parse_constructor(Type), lists:duplicate(Count, Value)}
++    case byte_size(ArrayBin) of
++        0 ->
++            %% "Count zero-width elements" costs a handful of bytes on the
++            %% wire no matter how large Count is. Since RabbitMQ has no need to
++            %% interpret this special type of array and to protect against CWE-770,
++            %% instead of materialized as Count terms, keep it as an opaque,
++            %% constant-size value.
++            case UnitSize of
++                8 -> {as_is, 16#e0, <<2:8, Count:8, Type>>};
++                32 -> {as_is, 16#f0, <<5:32, Count:32, Type>>}
++            end;
++        Size ->
++            exit({failed_to_parse_array_extra_input_remaining, Type, Size})
+     end;
+-parse_array1(Count, <<Type, ArrayBin/binary>>)
++parse_array1(_UnitSize, Count, <<Type, ArrayBin/binary>>)
+   when Count > byte_size(ArrayBin) ->
+     exit({failed_to_parse_array_count_exceeds_input, Type, Count, byte_size(ArrayBin)});
+-parse_array1(Count, <<Type, ArrayBin/binary>>) ->
++parse_array1(_UnitSize, Count, <<Type, ArrayBin/binary>>) ->
+     parse_array2(Count, Type, ArrayBin, []).
+ 
+ parse_array2(0, Type, <<>>, Acc) ->

diff --git a/rabbitmq-server-0009-Match-exact-symbol-length-when-detecting-AMQP-1.0-bo.patch b/rabbitmq-server-0009-Match-exact-symbol-length-when-detecting-AMQP-1.0-bo.patch
new file mode 100644
index 0000000..70f3dcb
--- /dev/null
+++ b/rabbitmq-server-0009-Match-exact-symbol-length-when-detecting-AMQP-1.0-bo.patch
@@ -0,0 +1,48 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: David Ansari <david.ansari@gmx.de>
+Date: Thu, 23 Jul 2026 14:15:01 +0200
+Subject: [PATCH 09/10] Match exact symbol length when detecting AMQP 1.0 body
+ sections
+
+In server_mode, the parser recognised the symbolic message body
+descriptors (amqp:data:binary, amqp:amqp-sequence:list and
+amqp:amqp-value:*) by their textual prefix only, ignoring the encoded
+symbol length. A described value whose descriptor merely started with
+one of these names was therefore classified as the corresponding
+standard body section.
+
+(cherry picked from commit c9b4b10c2dbf0f1c89f10b482ac8b45f84dc5954)
+(cherry picked from commit d5186e66e056960f58e2d0fbee2fcc66e1ed6fb9)
+Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
+---
+ deps/amqp10_common/src/amqp10_binary_parser.erl | 12 ++++++------
+ 1 file changed, 6 insertions(+), 6 deletions(-)
+
+diff --git a/deps/amqp10_common/src/amqp10_binary_parser.erl b/deps/amqp10_common/src/amqp10_binary_parser.erl
+index 6f59ab7b38..19338023a1 100644
+--- a/deps/amqp10_common/src/amqp10_binary_parser.erl
++++ b/deps/amqp10_common/src/amqp10_binary_parser.erl
+@@ -274,17 +274,17 @@ pm(<<?DESCRIBED, ?CODE_ULONG, ?DESCRIPTOR_CODE_AMQP_SEQUENCE:64, _Rest/binary>>,
+     reached_body(B, ?DESCRIPTOR_CODE_AMQP_SEQUENCE);
+ pm(<<?DESCRIBED, ?CODE_ULONG, ?DESCRIPTOR_CODE_AMQP_VALUE:64, _Rest/binary>>, true, B) ->
+     reached_body(B, ?DESCRIPTOR_CODE_AMQP_VALUE);
+-pm(<<?DESCRIBED, ?CODE_SYM_8, _S:8, "amqp:data:binary", _Rest/binary>>, true, B) ->
++pm(<<?DESCRIBED, ?CODE_SYM_8, 16:8, "amqp:data:binary", _Rest/binary>>, true, B) ->
+     reached_body(B, ?DESCRIPTOR_CODE_DATA);
+-pm(<<?DESCRIBED, ?CODE_SYM_8, _S:8, "amqp:amqp-sequence:list", _Rest/binary>>, true, B) ->
++pm(<<?DESCRIBED, ?CODE_SYM_8, 23:8, "amqp:amqp-sequence:list", _Rest/binary>>, true, B) ->
+     reached_body(B, ?DESCRIPTOR_CODE_AMQP_SEQUENCE);
+-pm(<<?DESCRIBED, ?CODE_SYM_8, _S:8, "amqp:amqp-value:*", _Rest/binary>>, true, B) ->
++pm(<<?DESCRIBED, ?CODE_SYM_8, 17:8, "amqp:amqp-value:*", _Rest/binary>>, true, B) ->
+     reached_body(B, ?DESCRIPTOR_CODE_AMQP_VALUE);
+-pm(<<?DESCRIBED, ?CODE_SYM_32, _S:32, "amqp:data:binary", _Rest/binary>>, true, B) ->
++pm(<<?DESCRIBED, ?CODE_SYM_32, 16:32, "amqp:data:binary", _Rest/binary>>, true, B) ->
+     reached_body(B, ?DESCRIPTOR_CODE_DATA);
+-pm(<<?DESCRIBED, ?CODE_SYM_32, _S:32, "amqp:amqp-sequence:list", _Rest/binary>>, true, B) ->
++pm(<<?DESCRIBED, ?CODE_SYM_32, 23:32, "amqp:amqp-sequence:list", _Rest/binary>>, true, B) ->
+     reached_body(B, ?DESCRIPTOR_CODE_AMQP_SEQUENCE);
+-pm(<<?DESCRIBED, ?CODE_SYM_32, _S:32, "amqp:amqp-value:*", _Rest/binary>>, true, B) ->
++pm(<<?DESCRIBED, ?CODE_SYM_32, 17:32, "amqp:amqp-value:*", _Rest/binary>>, true, B) ->
+     reached_body(B, ?DESCRIPTOR_CODE_AMQP_VALUE);
+ pm(<<?DESCRIBED, ?CODE_ULONG, ?DESCRIPTOR_CODE_PROPERTIES:64, Rest0/binary>>, O = true, B) ->
+     [Value | Rest] = pm(Rest0, O, B+10),

diff --git a/rabbitmq-server-0010-Parse-MQTT-properties-strictly.patch b/rabbitmq-server-0010-Parse-MQTT-properties-strictly.patch
new file mode 100644
index 0000000..14372ae
--- /dev/null
+++ b/rabbitmq-server-0010-Parse-MQTT-properties-strictly.patch
@@ -0,0 +1,236 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: David Ansari <david.ansari@gmx.de>
+Date: Mon, 27 Jul 2026 13:28:28 +0200
+Subject: [PATCH 10/10] Parse MQTT properties strictly
+
+The publishing MQTT client should be disconnected if it sends a malformed
+MQTT packet. An MQTT packet is malformed if it contains properties that
+are not valid for its packet type.
+See https://docs.oasis-open.org/mqtt/mqtt/v5.0/os/mqtt-v5.0-os.html#_Toc3901027
+
+(cherry picked from commit 4639a4318c72a0660e4bc014767fad70ce288fbc)
+(cherry picked from commit 908f944a1d581d10774f8d6d0dcf2a1a713779fb)
+Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
+---
+ deps/rabbitmq_mqtt/src/rabbit_mqtt_packet.erl | 134 ++++++++----------
+ 1 file changed, 63 insertions(+), 71 deletions(-)
+
+diff --git a/deps/rabbitmq_mqtt/src/rabbit_mqtt_packet.erl b/deps/rabbitmq_mqtt/src/rabbit_mqtt_packet.erl
+index 6b3afd92e3..ed39c34633 100644
+--- a/deps/rabbitmq_mqtt/src/rabbit_mqtt_packet.erl
++++ b/deps/rabbitmq_mqtt/src/rabbit_mqtt_packet.erl
+@@ -109,7 +109,7 @@ parse_packet(Bin, #mqtt_packet_fixed{type = Type,
+                                         <<Id:16, R/binary>> = PacketBin,
+                                         {Id, R}
+                                 end,
+-            {Props, Payload} = parse_props(Rest1, ProtoVer),
++            {Props, Payload} = parse_props(Rest1, ProtoVer, Type),
+             Publish = #mqtt_packet_publish{topic_name = TopicName,
+                                            packet_id = PacketId,
+                                            props = Props},
+@@ -124,7 +124,7 @@ parse_packet(Bin, #mqtt_packet_fixed{type = Type,
+                                           %% [v5 3.4.2.2.1]
+                                           {Rc, #{}};
+                                       <<Rc, PropsBin/binary>> when ProtoVer =:= 5 ->
+-                                          {Props0, <<>>} = parse_props(PropsBin, ProtoVer),
++                                          {Props0, <<>>} = parse_props(PropsBin, ProtoVer, Type),
+                                           {Rc, Props0}
+                                   end,
+             PubAck = #mqtt_packet_puback{packet_id = PacketId,
+@@ -134,7 +134,7 @@ parse_packet(Bin, #mqtt_packet_fixed{type = Type,
+         {?SUBSCRIBE, <<PacketId:16, PacketBin:(Length-2)/binary, Rest/binary>>} ->
+             %% "SUBSCRIBE messages use QoS level 1 to acknowledge multiple subscription requests."
+             1 = Qos,
+-            {Props, Rest1} = parse_props(PacketBin, ProtoVer),
++            {Props, Rest1} = parse_props(PacketBin, ProtoVer, Type),
+             Id = maps:get('Subscription-Identifier', Props, undefined),
+             Subscriptions = [#mqtt_subscription{
+                                 topic_filter = Topic,
+@@ -152,7 +152,7 @@ parse_packet(Bin, #mqtt_packet_fixed{type = Type,
+         {?UNSUBSCRIBE, <<PacketId:16, PacketBin:(Length-2)/binary, Rest/binary>>} ->
+             %% "UNSUBSCRIBE messages use QoS level 1 to acknowledge multiple unsubscribe requests."
+             1 = Qos,
+-            {Props, Rest1} = parse_props(PacketBin, ProtoVer),
++            {Props, Rest1} = parse_props(PacketBin, ProtoVer, Type),
+             Topics = [Topic || <<Len:16, Topic:Len/binary>> <= Rest1],
+             Unsubscribe = #mqtt_packet_unsubscribe{packet_id = PacketId,
+                                                    props = Props,
+@@ -172,7 +172,7 @@ parse_packet(Bin, #mqtt_packet_fixed{type = Type,
+             wrap(Fixed, Disconnect, Rest, ProtoVer);
+         {?DISCONNECT, <<ReasonCode, PacketBin:(Length-1)/binary, Rest/binary>>}
+           when ProtoVer =:= 5 andalso Length > 1 ->
+-            {Props, <<>>} = parse_props(PacketBin, ProtoVer),
++            {Props, <<>>} = parse_props(PacketBin, ProtoVer, Type),
+             Disconnect = #mqtt_packet_disconnect{reason_code = ReasonCode,
+                                                  props = Props},
+             wrap(Fixed, Disconnect, Rest, ProtoVer);
+@@ -221,14 +221,14 @@ parse_connect(<<Len:16, ProtoName:Len/binary,
+                 KeepAlive:16,
+                 Rest0/binary>>) ->
+     true = protocol_name_approved(ProtoVer, ProtoName),
+-    {Props, Rest1} = parse_props(Rest0, ProtoVer),
++    {Props, Rest1} = parse_props(Rest0, ProtoVer, ?CONNECT),
+     {ClientId, Rest2} = parse_bin(Rest1),
+     {WillProps, WillTopic, WillPayload, Rest3} =
+     case WillFlag of
+         0 ->
+             {#{}, undefined, undefined, Rest2};
+         1 ->
+-            {WillProps0, R0} = parse_props(Rest2, ProtoVer),
++            {WillProps0, R0} = parse_props(Rest2, ProtoVer, will_props),
+             {WillTopic0, R1} = parse_bin(R0),
+             {WillPayload0, R2} = parse_bin(R1),
+             {WillProps0, WillTopic0, WillPayload0, R2}
+@@ -287,76 +287,74 @@ int_to_bool(1) -> true.
+ bool_to_int(false) -> 0;
+ bool_to_int(true) -> 1.
+ 
+--spec parse_props(binary(), protocol_version()) ->
++-spec parse_props(binary(), protocol_version(), packet_type() | will_props) ->
+     {properties(), binary()}.
+-parse_props(Bin, Vsn)
++parse_props(Bin, Vsn, _Type)
+   when Vsn < 5 ->
+     {#{}, Bin};
+-parse_props(<<0, Rest/binary>>, 5) ->
++parse_props(<<0, Rest/binary>>, 5, _Type) ->
+     %% "If there are no properties, this MUST be indicated by
+     %% including a Property Length of zero." [MQTT-2.2.2-1]
+     {#{}, Rest};
+-parse_props(Bin, 5) ->
++parse_props(Bin, 5, Type) ->
+     {Len, Rest0} = parse_variable_byte_integer(Bin),
+     <<PropsBin:Len/binary, Rest/binary>> = Rest0,
+-    Props = parse_prop(PropsBin, #{}),
++    Props = parse_prop(PropsBin, Type, #{}),
+     {Props, Rest}.
+ 
+--spec parse_prop(binary(), properties()) ->
++-spec parse_prop(binary(), packet_type() | will_props, properties()) ->
+     properties().
+-parse_prop(<<>>, #{'User-Property' := UserProps} = Props) ->
++parse_prop(<<>>, _Type, #{'User-Property' := UserProps} = Props) ->
+     %% "The Server MUST maintain the order of User Properties"
+     maps:update('User-Property', lists:reverse(UserProps), Props);
+-parse_prop(<<>>, Props) ->
++parse_prop(<<>>, _Type, Props) ->
+     Props;
+-parse_prop(<<16#01, Val, Bin/binary>>, Props) ->
+-    parse_prop(Bin, Props#{'Payload-Format-Indicator' => Val});
+-parse_prop(<<16#02, Val:32, Bin/binary>>, Props) ->
+-    parse_prop(Bin, Props#{'Message-Expiry-Interval' => Val});
+-parse_prop(<<16#03, Len:16, Val:Len/binary, Rest/binary>>, Props) ->
+-    parse_prop(Rest, Props#{'Content-Type' => Val});
+-parse_prop(<<16#08, Len:16, Val:Len/binary, Rest/binary>>, Props) ->
+-    parse_prop(Rest, Props#{'Response-Topic' => Val});
+-parse_prop(<<16#09, Len:16, Val:Len/binary, Bin/binary>>, Props) ->
+-    parse_prop(Bin, Props#{'Correlation-Data' => Val});
+-parse_prop(<<16#0B, Bin/binary>>, Props) ->
++parse_prop(<<16#01, Val, Bin/binary>>, Type, Props)
++  when Type =:= ?PUBLISH orelse Type =:= will_props ->
++    parse_prop(Bin, Type, Props#{'Payload-Format-Indicator' => Val});
++parse_prop(<<16#02, Val:32, Bin/binary>>, Type, Props)
++  when Type =:= ?PUBLISH orelse Type =:= will_props ->
++    parse_prop(Bin, Type, Props#{'Message-Expiry-Interval' => Val});
++parse_prop(<<16#03, Len:16, Val:Len/binary, Rest/binary>>, Type, Props)
++  when Type =:= ?PUBLISH orelse Type =:= will_props ->
++    parse_prop(Rest, Type, Props#{'Content-Type' => Val});
++parse_prop(<<16#08, Len:16, Val:Len/binary, Rest/binary>>, Type, Props)
++  when Type =:= ?PUBLISH orelse Type =:= will_props ->
++    parse_prop(Rest, Type, Props#{'Response-Topic' => Val});
++parse_prop(<<16#09, Len:16, Val:Len/binary, Bin/binary>>, Type, Props)
++  when Type =:= ?PUBLISH orelse Type =:= will_props ->
++    parse_prop(Bin, Type, Props#{'Correlation-Data' => Val});
++parse_prop(<<16#0B, Bin/binary>>, ?SUBSCRIBE = Type, Props) ->
+     {Val, Rest} = parse_variable_byte_integer(Bin),
+     %% Client sends at most one Subscription-Identifier to the server (in SUBSCRIBE packet).
+     %% "It is a Protocol Error to include the Subscription Identifier more than once." [v5 3.8.2.1.2]
+-    parse_prop(Rest, Props#{'Subscription-Identifier' => Val});
+-parse_prop(<<16#11, Val:32, Bin/binary>>, Props) ->
+-    parse_prop(Bin, Props#{'Session-Expiry-Interval' => Val});
+-parse_prop(<<16#12, Len:16, Val:Len/binary, Rest/binary>>, Props) ->
+-    parse_prop(Rest, Props#{'Assigned-Client-Identifier' => Val});
+-parse_prop(<<16#13, Val:16, Bin/binary>>, Props) ->
+-    parse_prop(Bin, Props#{'Server-Keep-Alive' => Val});
+-parse_prop(<<16#15, Len:16, Val:Len/binary, Rest/binary>>, Props) ->
+-    parse_prop(Rest, Props#{'Authentication-Method' => Val});
+-parse_prop(<<16#16, Len:16, Val:Len/binary, Bin/binary>>, Props) ->
+-    parse_prop(Bin, Props#{'Authentication-Data' => Val});
+-parse_prop(<<16#17, Val, Bin/binary>>, Props) ->
+-    parse_prop(Bin, Props#{'Request-Problem-Information' => Val});
+-parse_prop(<<16#18, Val:32, Bin/binary>>, Props) ->
+-    parse_prop(Bin, Props#{'Will-Delay-Interval' => Val});
+-parse_prop(<<16#19, Val, Bin/binary>>, Props) ->
+-    parse_prop(Bin, Props#{'Request-Response-Information' => Val});
+-parse_prop(<<16#1A, Len:16, Val:Len/binary, Rest/binary>>, Props) ->
+-    parse_prop(Rest, Props#{'Response-Information' => Val});
+-parse_prop(<<16#1C, Len:16, Val:Len/binary, Rest/binary>>, Props) ->
+-    parse_prop(Rest, Props#{'Server-Reference' => Val});
+-parse_prop(<<16#1F, Len:16, Val:Len/binary, Rest/binary>>, Props) ->
+-    parse_prop(Rest, Props#{'Reason-String' => Val});
+-parse_prop(<<16#21, Val:16, Bin/binary>>, Props) ->
+-    parse_prop(Bin, Props#{'Receive-Maximum' => Val});
+-parse_prop(<<16#22, Val:16, Bin/binary>>, Props) ->
+-    parse_prop(Bin, Props#{'Topic-Alias-Maximum' => Val});
+-parse_prop(<<16#23, Val:16, Bin/binary>>, Props) ->
+-    parse_prop(Bin, Props#{'Topic-Alias' => Val});
+-parse_prop(<<16#24, Val, Bin/binary>>, Props) ->
+-    parse_prop(Bin, Props#{'Maximum-QoS' => Val});
+-parse_prop(<<16#25, Val, Bin/binary>>, Props) ->
+-    parse_prop(Bin, Props#{'Retain-Available' => Val});
+-parse_prop(<<16#26, LenName:16, Name:LenName/binary, LenVal:16, Val:LenVal/binary, Rest/binary>>, Props0) ->
++    parse_prop(Rest, Type, Props#{'Subscription-Identifier' => Val});
++parse_prop(<<16#11, Val:32, Bin/binary>>, Type, Props)
++  when Type =:= ?CONNECT orelse Type =:= ?DISCONNECT ->
++    parse_prop(Bin, Type, Props#{'Session-Expiry-Interval' => Val});
++parse_prop(<<16#15, Len:16, Val:Len/binary, Rest/binary>>, ?CONNECT = Type, Props) ->
++    parse_prop(Rest, Type, Props#{'Authentication-Method' => Val});
++parse_prop(<<16#16, Len:16, Val:Len/binary, Bin/binary>>, ?CONNECT = Type, Props) ->
++    parse_prop(Bin, Type, Props#{'Authentication-Data' => Val});
++parse_prop(<<16#17, Val, Bin/binary>>, ?CONNECT = Type, Props) ->
++    parse_prop(Bin, Type, Props#{'Request-Problem-Information' => Val});
++parse_prop(<<16#18, Val:32, Bin/binary>>, will_props = Type, Props) ->
++    parse_prop(Bin, Type, Props#{'Will-Delay-Interval' => Val});
++parse_prop(<<16#19, Val, Bin/binary>>, ?CONNECT = Type, Props) ->
++    parse_prop(Bin, Type, Props#{'Request-Response-Information' => Val});
++parse_prop(<<16#1C, Len:16, Val:Len/binary, Rest/binary>>, ?DISCONNECT = Type, Props) ->
++    parse_prop(Rest, Type, Props#{'Server-Reference' => Val});
++parse_prop(<<16#1F, Len:16, Val:Len/binary, Rest/binary>>, Type, Props)
++  when Type =:= ?PUBACK orelse Type =:= ?DISCONNECT ->
++    parse_prop(Rest, Type, Props#{'Reason-String' => Val});
++parse_prop(<<16#21, Val:16, Bin/binary>>, ?CONNECT = Type, Props) ->
++    parse_prop(Bin, Type, Props#{'Receive-Maximum' => Val});
++parse_prop(<<16#22, Val:16, Bin/binary>>, ?CONNECT = Type, Props) ->
++    parse_prop(Bin, Type, Props#{'Topic-Alias-Maximum' => Val});
++parse_prop(<<16#23, Val:16, Bin/binary>>, ?PUBLISH = Type, Props) ->
++    parse_prop(Bin, Type, Props#{'Topic-Alias' => Val});
++parse_prop(<<16#26, LenName:16, Name:LenName/binary, LenVal:16, Val:LenVal/binary, Rest/binary>>,
++           Type, Props0) ->
+     %% "The User Property is allowed to appear multiple times to represent multiple
+     %% name, value pairs. The same name is allowed to appear more than once."
+     Pair = {Name, Val},
+@@ -364,19 +362,13 @@ parse_prop(<<16#26, LenName:16, Name:LenName/binary, LenVal:16, Val:LenVal/binar
+                              fun(UserProps) -> [Pair | UserProps] end,
+                              [Pair],
+                              Props0),
+-    parse_prop(Rest, Props);
+-parse_prop(<<16#27, Val:32, Bin/binary>>, Props) ->
++    parse_prop(Rest, Type, Props);
++parse_prop(<<16#27, Val:32, Bin/binary>>, ?CONNECT = Type, Props) ->
+     %% "It is a Protocol Error [...] for the value to be set to zero." [MQTT 5.0 3.1.2.11.4]
+     true = Val > 0,
+-    parse_prop(Bin, Props#{'Maximum-Packet-Size' => Val});
+-parse_prop(<<16#28, Val, Bin/binary>>, Props) ->
+-    parse_prop(Bin, Props#{'Wildcard-Subscription-Available' => Val});
+-parse_prop(<<16#29, Val, Bin/binary>>, Props) ->
+-    parse_prop(Bin, Props#{'Subscription-Identifier-Available' => Val});
+-parse_prop(<<16#2A, Val, Bin/binary>>, Props) ->
+-    parse_prop(Bin, Props#{'Shared-Subscription-Available' => Val});
+-parse_prop(<<PropId, _Rest/binary>>, _Props) ->
+-    throw({invalid_property_id, PropId}).
++    parse_prop(Bin, Type, Props#{'Maximum-Packet-Size' => Val});
++parse_prop(<<PropId, _Rest/binary>>, Type, _Props) ->
++    throw({invalid_property_id, PropId, Type}).
+ 
+ -spec parse_variable_byte_integer(binary()) ->
+     {integer(), Rest :: binary()}.

diff --git a/rabbitmq-server.spec b/rabbitmq-server.spec
index 2d1282b..2818fe4 100644
--- a/rabbitmq-server.spec
+++ b/rabbitmq-server.spec
@@ -8,7 +8,7 @@
 
 Name: rabbitmq-server
 Version: 4.2.9
-Release: 3%{?dist}
+Release: 4%{?dist}
 Summary: The RabbitMQ server
 License: MPL-2.0
 Source0: https://github.com/rabbitmq/rabbitmq-server/releases/download/v%{version}/%{name}_%{version}.orig.tar.xz
@@ -27,6 +27,9 @@ Patch: rabbitmq-server-0004-Greatly-simplified-wrapper-script-which-works-proper
 Patch: rabbitmq-server-0005-Revert-OTP-26-has-reached-EOL.patch
 Patch: rabbitmq-server-0006-rabbit_plugins-demote-duplicate-plugin-warnings-from.patch
 Patch: rabbitmq-server-0007-rabbit_access_control-update_state-2-rebuild-user-ta.patch
+Patch: rabbitmq-server-0008-Encode-AMQP-1.0-arrays-of-zero-octet-elements-as-opa.patch
+Patch: rabbitmq-server-0009-Match-exact-symbol-length-when-detecting-AMQP-1.0-bo.patch
+Patch: rabbitmq-server-0010-Parse-MQTT-properties-strictly.patch
 
 URL: https://www.rabbitmq.com/
 BuildRequires: elixir
@@ -179,6 +182,10 @@ rm -f %{_rabbit_libdir}/lib/rabbitmq_server-%{version}/ebin/rabbit.{rel,script,b
 
 
 %changelog
+* Mon Nov 02 2026 Peter Lemenkov <lemenkov@gmail.com> - 4.2.9-4
+- Backport fixes for CVE-2026-67414 (rhbz#2561692), CVE-2026-67416
+  (rhbz#2561690) and CVE-2026-67418 (rhbz#2561691)
+
 * Fri Oct 09 2026 Peter Lemenkov <lemenkov@gmail.com> - 4.2.9-3
 - Backport fix for CVE-2026-67420 (rhbz#2544007)
 

                 reply	other threads:[~2026-11-02 21:05 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179365350947.1.13117044774295109555.rpms-rabbitmq-server-c17cd2bf5e96@fedoraproject.org \
    --to=lemenkov@gmail.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox