diff --git a/meta/classes-recipe/upstream-stable-release-point.bbclass b/meta/classes-recipe/upstream-stable-release-point.bbclass
new file mode 100644
index 0000000000..947f882152
--- /dev/null
+++ b/meta/classes-recipe/upstream-stable-release-point.bbclass
@@ -0,0 +1,22 @@
+#
+# Copyright OpenEmbedded Contributors
+#
+# SPDX-License-Identifier: MIT
+#
+
+#
+# This bbclass is expected to be inherited by recipes explicitly.
+# If a recipe's version is separated by point and its last part's
+# bump is a stable upgrade, then it can inherit this bbclass.
+#
+
+def get_majmin_version_regex(d):
+    pv = d.getVar('PV')
+    v_parts = pv.split('.')
+    if len(v_parts) == 1:
+        return pv
+    else:
+        return '\.'.join(v_parts[:-1])
+
+MAJMIN_VERSION_REGEX = "${@get_majmin_version_regex(d)}"
+UPSTREAM_STABLE_RELEASE_REGEX = "${MAJMIN_VERSION_REGEX}\.\d"
